spaces aren't supported
This is the regex for key names:
It has worked on a windows machine, with the proper quotes, hence I know it is possible via AWS CLI. Still not sure about the GitLab + AWS CLI combination.
And it is possible from the console.
I found this in documentation:
The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
My bad..I was referencing the incorrect regex.
The SAM cli is just a wrapper on top of the cloudformation cli..have you tried using the cf cli directly?
aws cloudformation deploy
Yes, I have tried that as well. From a Windows laptop it is possible with the right quotes.
--tags "OTAP Environment=T"
Would work in that case. But haven't got it to run on a Gitlab runner. But the solution is no longer needed as the required tag has changed to a tag without a space :-D
Answer is no longer needed as the required tag name changed.
List of Custom Tags under Accountasked 2 years ago
Cloudformation + AWS Batch - stack-level tags -> EC2 tagsasked 8 months ago
Using tags with spaces with cloudformation deployasked 4 years ago
How to delete Tags in "Cost Allocation Tags"?asked 21 days ago
CDK tag manager vs Cloudformation stack tagsAccepted Answerasked 3 years ago
AWS Cost Explorer Tags Not Showing All Values of ec2 instance tagsasked a month ago
Cloudformation does not tag resourcesasked 9 months ago
CloudFormation create-change-set Tags propagationasked 6 months ago
Cloudformation tagging for cost managementasked 5 months ago
Lambda function for S3 tagging with multiple tagsasked 3 years ago