aws-deployment-framework icon indicating copy to clipboard operation
aws-deployment-framework copied to clipboard

[Feat]: Enhanced Targetting via Tags

Open alexevansigg opened this issue 1 year ago • 1 comments

Describe the feature

Deployment Maps Targeting via Tags improvement.
When targeting via tags, I want to target multiple values for the same tag without needing multiple stages and also target via multiple named tags in the same stage

Use Case

All my accounts are tagged with the a key "account-short-name" the value is a short unique name within the organization for the account.

I want to target several such accounts to deploy the same stack too.

Proposed Solution

Add support for List in Tag values such as ...

tags:
   account-short-name:
       - my-account-tag-1
       - my-account-tag-2

Additionally add a conditional operator support for multiple named tags

tags-condition: any # Filter accounts matching either of the below tags.
tags:
   account-short-name: my-test-account-tag-1
   environment: dev
tags-condition: all # Filter accounts which match both of the below tags.
tags:
   account-short-name: my-test-account-tag-1
   environment: dev

Acknowledgements

  • [X] I may be able to implement this feature request

alexevansigg avatar Feb 16 '24 13:02 alexevansigg