hashicorp / hashicorp/packer-plugin-amazon
Issue in separate Tagging each disk in ebs-builder
- Dominant language
- Go
- Stars
- 91
- Forks
- 141
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 3
Description
_This issue was originally opened by @de-bose in https://github.com/hashicorp/packer/issues/11969 and has been migrated to this repository. The original issue description is below._
---
Hi,
I have a manual AMI (ami-09647dff0f0685de9) created with 3 disks. 20 GB for root disk and 2 other EBS disks 70GB and 10 GB
Using the above AMI as source AMI, i am trying to build a custom AMI by running multiple provisioners on top of it.
I am facing challenge in tagging the individual disks or snapshots uniquely.
I want to have each disk and snapshot identified by a unique name. Please help me how can i add it
Below is the basic code snippet
{
"builders": [
{
"name": "RHEL-Test",
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `aws-region`}}",
"subnet_id": "{{user `subnet_id`}}",
"instance_type": "t3.2xlarge",
"vpc_id": "{{user `vpc_id`}}",
"source_ami": "ami-09647dff0f0685de9",
"ssh_username": "ec2-user",
"ssh_timeout": "60m",
"ami_name": "{{build_name}}-{{isotime `02-Jan-06 03:04:05` | clean_resource_name}}",
"tags": {
"Name": "{{build_name}}-{{isotime `02-Jan-06 03:04:05` | clean_resource_name}}",
"Env": "All",
}
}
]
}
Regards,
Deb
Contributor guide
Assessment
This issue has not been assessed yet.