Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image tags should be applied to snapshots too, optionally configurable #130

Open
Jalle19 opened this issue Oct 17, 2024 · 1 comment
Open

Comments

@Jalle19
Copy link

Jalle19 commented Oct 17, 2024

Description

The builder currently supports image_tags, where you can specify the tags the resulting image should have. However, the underlying snapshot that backs the image remains untagged.

Either the snapshot should automatically inherit the tags of the image, or they should be configurable separately (this seems to be how the amazon-ebs builder operates).

Potential configuration

Similar to what the amazon-ebs builder provides:

snapshot_tags (map[string]string) - Key/value pair tags to apply to snapshot. They will override AMI tags if already applied to snapshot. This is a template engine, see Build template data for more information.

Potential References

https://developer.hashicorp.com/packer/integrations/hashicorp/amazon/latest/components/builder/ebs

@Jalle19
Copy link
Author

Jalle19 commented Oct 21, 2024

Seems like run_tags is applied to both the RunInstances´ call as well as the CreateImage` call. The documentation doesn't make this clear though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant