IMDS option instance_metadata_tags
does not work on packer 1.8.5 #428
Closed
Description
Overview of the Issue
I am using packer with ebs-volume builder to create an AMI, the goal is to create an AMI with the "Access to tags in instance metadata" feature enabled.
To do so: add the instance_metadata_tags
to "enabled" in the template.pkr.hcl
file. sauce
Reproduction Steps
Have an ebs volume as source like:
source "amazon-ebs" "watever" {
ami_name = "whatever"
metadata_options {
instance_metadata_tags = "enabled"
}
[...]
}
Then packer build it.
Afterwards, try to create a new instance with the generated AMI.
You'll see that accessing tags from IMDS is disabled
Plugin and Packer version
From packer version
1.8.5
Simplified Packer Buildfile
build {
sources = ["source.amazon-ebs.whatever"]
post-processor "manifest" {
output = "manifest.json"
strip_path = true
}
}
Operating system and Environment details
running on ubuntu20.04 (amd/64)
Log Fragments and crash.log files
No log errors, all executes smoothly