packer-plugin-amazon
packer-plugin-amazon copied to clipboard
ebssurrogate builder missing `deprecate_at` argument
Overview of the Issue
The amazon-ebssurrogate builder is missing the deprecate_at argument.
Reproduction Steps
Attempt to use the argument deprecate_at in a template with the ebssurrogate builder.
Plugin and Packer version
❯ packer plugins installed
/home/x/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.3.2_x5.0_linux_amd64
Simplified Packer Buildfile
Just copying from the docs example, and adding the deprecate_at input...
source "amazon-ebssurrogate" "basic-example" {
region = "us-east-1"
ssh_username = "ubuntu"
instance_type = "t2.medium"
source_ami = "ami-40d28157"
ami_name = "packer-test-ami"
ami_virtualization_type = "paravirtual"
deprecate_at = timeadd(timestamp(), "8760h")
launch_block_device_mappings {
volume_type = "gp2"
device_name = "/dev/xvdf"
delete_on_termination = false
volume_size = 10
}
ami_root_device {
source_device_name = "/dev/xvdf"
device_name = "/dev/xvda"
delete_on_termination = true
volume_size = 16
volume_type = "gp2"
}
}
build {
sources = ["sources.amazon-ebssurrogate.basic-example"]
provisioner "shell" {
inline = ["..."]
}
}
Log Fragments and crash.log files
❯ packer build build.pkr.hcl
Error: Unsupported argument
on build.pkr.hcl line 9:
(source code not available)
An argument named "deprecate_at" is not expected here.