An error occurred (ValidationError) when calling the CreateChangeSet operation: Template format error: Resource name batch_job_admin_group is non alphanumeric.
AWS Naming Conventions…again…CloudFormation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⚙️ Check out my series on Automating Cybersecurity Metrics | Code.
🔒 Related Stories: Bugs | AWS Security | Secure Code
💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Apparently no names in CloudFormation can contain underscores. I don’t love camel case but that would work. In this case the problem was with one of my resource names.
So this:
Resources:
batch_job_admin_group:
Type: AWS::IAM::Group
Properties:
GroupName: !Ref group_name_param
Became this:
Resources:
batchjobadmingroup:
Type: AWS::IAM::Group
Properties:
GroupName: !Ref group_name_param
Just name everything on AWS all lowercase no spaces no underscores no dashes and no numbers. That should work. I think.
Follow for updates.
Teri Radichel | © 2nd Sight Lab 2022
About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author…