Closed wayne-folkes closed 4 years ago
I can understand AWS motivation to prevent Tag-Keys from beginning with "aws" but why no uppercase letters. I suspect the current regex is a "left-over" from AWS internal standards that needs to be relaxed for the general public.
Our organization uses both upper and lower case tag-keys and the volume of IaC templates/source is so great that our firm would rather NOT use the resource AWS::CloudFormation::StackSet than to go back and change tag-key standards and try to socialize the change across 1000+ employees. https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cloudformation/blob/93db66e4794b77cebabf00f2c4072e5af7b66609/aws-cloudformation-stackset/aws-cloudformation-stackset.json#L21
Why are you putting any restrictions on the Tag-Values? Why not regex '*.'? for example, your current regex denies firms from inserting email address as a Tag-value. I can't recall any firm that doesn't have some email addresses in some tag-values. https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cloudformation/blob/93db66e4794b77cebabf00f2c4072e5af7b66609/aws-cloudformation-stackset/aws-cloudformation-stackset.json#L28
Bottom-line: If you want clients to leverage this valuable contribution then you need to loosen up the tagging regular expressions.
Thanks a lot for your feedback, after internal discussion. We will address this and release the restriction for uppercase letters.
Please track #23
Thanks @xiwhuang and @wayne-folkes, the issue has been resolved and deployed to production. Can you please close this issue?
I am trying to create a stackset with the new StackSet resource but tags i want to apply to the stackset cause validation errors
According to the schema a valid tag and it's value must adhere to the following "^(?!aws:.*)[a-z0-9\s\_\.\/\=\+\-]+$"
This makes it impossible to use intrinsic functions or even Tags with capital letters in it's value
When trying to create a tag with the following Key, Value pair
I get the following error
Model validation failed (#: #: only 1 subschema matches out of 2) #/Tags/0/Key: failed validation constraint for keyword [pattern] (#/Tags/0/Key)
Here is a sample of the template I am working with