hashicorp / hashicorp/packer-plugin-amazon
AWS: packer cant find configuration key for instance_metadata_tag option
- Dominant language
- Go
- Stars
- 91
- Forks
- 141
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 3
Description
_This issue was originally opened by @mitter91 in https://github.com/hashicorp/packer/issues/11717 and has been migrated to this repository. The original issue description is below._
---
#### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
here manifest file i used without changes:
```
{
"variables": {
"env": "{{ env `ENV` }}",
"f5_type": "{{ env `F5_TYPE` }}",
"release_version": "{{ env `RELEASE_VERSION` }}",
"ssh_key_name": "{{ env `SSH_KEYPAIR` }}"
},
"builders": [
{
"type": "amazon-ebs",
"region": "eu-central-1",
"skip_create_ami": true,
"ssh_pty": true,
"vpc_filter": {
"filters": {
"tag:Name": "obo",
"isDefault": "false"
}
},
"subnet_filter": {
"filters": {
"tag:Name": "obo:lg1a-pod:app-mgmt-001"
},
"most_free": "true",
"random": "false"
},
"security_group_filter": {
"filters": {
"tag:Name": "cs-f5*"
}
},
"source_ami_filter": {
"filters": {
"tag:Name": "F5_BIG-IP_{{ user `ami_type` }}_R4.??_LAB-ECX_OBO"
},
"owners": [
"self"
],
"most_recent": true
},
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "optional",
"http_put_response_hop_limit": 1,
"instance_metadata_tags": "enabled"
},
"instance_type": "m5.xlarge",
"encrypt_boot": true,
"ssh_username": "admin",
"ssh_timeout": "10m",
"ami_name": "{{ user `f5_type` }}",
"ami_description": "F5 BIG-IP AMI",
"ena_support": true,
"ssh_keypair_name": "{{ user `ssh_key_name` }}",
"ssh_agent_auth": true,
"run_tags": {
"Name": "F5_BIG-IP_Backup_Packer_Builder",
"Backup_Packer": "true",
"Env": "{{ user `env` }}",
"Service": "{{ user `f5_type` }}",
"Release": "{{ user `release_version` }}",
"Terminator_Postpone": "true"
}
}
],
"provisioners": [
{
"type": "shell-local",
"pause_before": "120s",
"command": "ansible-inventory -i inventory/{{ user `env` }}/aws_ec2.yml --graph"
},
{
"type": "ansible",
"playbook_file": "f5.yml",
"inventory_file": "inventory/{{ user `env` }}/aws_ec2.yml",
"extra_arguments": [
"-t",
"{{ user `tags` }}"
]
}
]
}
```
amazon plugin updated to 1.0.9 version
logout from packer:
Error: Failed to prepare build: "amazon-ebs"
1 error occurred:
* unknown configuration key: '"metadata_options.instance_metadata_tags"'
Contributor guide
Assessment
This issue has not been assessed yet.