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
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.
Teri Radichel
If you liked this story please clap and follow:
Medium: Teri Radichel or Email List: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests services via LinkedIn: Teri Radichel or IANS Research
© 2nd Sight Lab 2022
____________________________________________
Author:
Cybersecurity for Executives in the Age of Cloud on Amazon
Need Cloud Security Training? 2nd Sight Lab Cloud Security Training
Is your cloud secure? Hire 2nd Sight Lab for a penetration test or security assessment.
Have a Cybersecurity or Cloud Security Question? Ask Teri Radichel by scheduling a call with IANS Research.
Cybersecurity & Cloud Security Resources by Teri Radichel: Cybersecurity and Cloud security classes, articles, white papers, presentations, and podcasts