github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl2_upgrade/unknown_builder/expected.pkr.hcl (about) 1 packer { 2 required_version = ">= 1.6.0" 3 } 4 5 variable "aws_access_key" { 6 type = string 7 default = "" 8 } 9 10 variable "aws_region" { 11 type = string 12 } 13 14 variable "aws_secret_key" { 15 type = string 16 default = "" 17 } 18 19 source "potatoes" "autogenerated_1" { 20 access_key = "${var.aws_access_key}" 21 ami_description = "Ubuntu 16.04 LTS - expand root partition" 22 ami_name = "ubuntu-16-04-test" 23 encrypt_boot = true 24 launch_block_device_mappings { 25 delete_on_termination = true 26 device_name = "/dev/sda1" 27 volume_size = 48 28 volume_type = "gp2" 29 } 30 region = "${var.aws_region}" 31 secret_key = "${var.aws_secret_key}" 32 source_ami = "ami1234567" 33 spot_instance_types = ["t2.small", "t2.medium", "t2.large"] 34 spot_price = "0.0075" 35 ssh_interface = "session_manager" 36 ssh_username = "ubuntu" 37 temporary_iam_instance_profile_policy_document { 38 Statement { 39 Action = ["*"] 40 Effect = "Allow" 41 Resource = ["*"] 42 } 43 Version = "2012-10-17" 44 } 45 } 46 47 build { 48 sources = ["source.potatoes.autogenerated_1"] 49 50 }