diff --git a/test_files/template.pkr.hcl b/test_files/template.pkr.hcl
index 432b522cc3bd7264771af8c3b29c91b80b48d650..03cd66da2b687ac029e310bee69cb8dfe67c2deb 100644
--- a/test_files/template.pkr.hcl
+++ b/test_files/template.pkr.hcl
@@ -1,32 +1,22 @@
+# vi: ft=tf
+
 packer {
   required_plugins {
-    amazon = {
-      version = ">= 0.0.2"
-      source  = "github.com/hashicorp/amazon"
+    docker = {
+      version = ">= 1.0.8"
+      source = "github.com/hashicorp/docker"
     }
   }
 }
 
-source "amazon-ebs" "ubuntu" {
-  ami_name      = "learn-packer-linux-aws"
-  instance_type = "t2.micro"
-  region        = "us-west-2"
-  source_ami_filter {
-    filters = {
-      name                = "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*"
-      root-device-type    = "ebs"
-      virtualization-type = "hvm"
-    }
-    most_recent = true
-    owners      = ["099720109477"]
-  }
-  ssh_username = "ubuntu"
+source "docker" "ubuntu" {
+  image  = "ubuntu:jammy"
+  commit = true
 }
 
 build {
-  name = "learn-packer"
+  name    = "learn-packer"
   sources = [
-    "source.amazon-ebs.ubuntu"
+    "source.docker.ubuntu"
   ]
 }
-