-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AWS: Allow setting tags to snapshots or AMIs only
This commit introduces two new optional properties on `AWSPublishingMetadata` named `snapshot_tags` and `ami_tags`, which when set allows to add tags just for snapshot imports or the registered image respectively. Rationale: Currently our team is facing sporadic issues on community AMIs workflow when uploading the image to different billing types (`access` or `hourly`) after a retry, as the second attempt will look for the image name, fail to find, search for tags and find an AMI which concerns the other billing type. This was initially fixed by release-engineering/pubtools-marketplacesvm#74 by adding the billing type as tags. However, the fix brings another potential issue: we will tag everything with the billing tags, including the S3 object, which could being unecessarily uploaded twice, as well as having a tag which doesn't concern the S3 RAW object, but the snapshot/image only. With this change on `cloudimg` we aim to provide the billing type tags just for the snapshot and AMI, leaving the S3 object with the previous ones as it shouldn't receive the billing tag. This change also allows other teams to have a more granular control on which tags should go where. Refers to SPSTRAT-451
- Loading branch information
Showing
2 changed files
with
127 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters