hashicorp / packer-plugin-tencentcloud

Packer plugin for Tencent Cloud Image Builder
https://www.packer.io/docs/builders/tencentcloud-cvm
Mozilla Public License 2.0
8 stars 12 forks source link

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

Open Jalle19 opened 1 week ago

Jalle19 commented 1 week ago

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 commented 4 days ago

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