Incorrect CloudFormation error message when utilizing AWS profiles
I may see how this error could possibly be extraordinarily complicated to somebody who hasn’t programmed for years and is aware of what sort of non-sensical error messages might be generated by parsers.
As soon as once more this error message actually didn’t should do what the said error message. There was nothing fallacious with the worth I used to be passing right into a CloudFormation template.
The issue was that the parser that executes the AWS CLI cloudformation deploy command doesn’t accurately acknowledge a brand new swap on the command line. I put the profile possibility on the finish of the command and the parser thought it was a part of the parameter overrides simply earlier than that swap. I mounted it by merely transferring the profile possibility earlier than the parameter overrides possibility. This parsing error may have safety implications however I don’t have time to consider that any additional.
Mainly I modified this:
aws cloudformation deploy
--stack-name $groupname
--template-file cfn/group_batch_job_admins.yaml
--parameter-overrides
groupnameparam=$groupname
--profile $profile
to this:
aws cloudformation deploy
--profile $profile
--stack-name $groupname
--template-file cfn/group_batch_job_admins.yaml
--parameter-overrides
groupnameparam=$groupname
Teri Radichel
When you favored this story please clap and observe:
Medium: Teri Radichel or E-mail Listing: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests companies by way of LinkedIn: Teri Radichel or IANS Analysis
© 2nd Sight Lab 2022
____________________________________________
Creator:
Cybersecurity for Executives within the Age of Cloud on Amazon
Want Cloud Safety Coaching? 2nd Sight Lab Cloud Safety Coaching
Is your cloud safe? Rent 2nd Sight Lab for a penetration take a look at or safety evaluation.
Have a Cybersecurity or Cloud Safety Query? Ask Teri Radichel by scheduling a name with IANS Analysis.
Cybersecurity & Cloud Safety Sources by Teri Radichel: Cybersecurity and Cloud safety courses, articles, white papers, displays, and podcasts