Thursday, September 22, 2022
HomeCyber Securityanticipated , however discovered '' | by Teri Radichel | Bugs That...

anticipated , however discovered ” | by Teri Radichel | Bugs That Chew | Sep, 2022


Error parsing AWS CloudFormation template

I’ve gotten this error a number of instances now whereas operating a CloudFormation script. I suppose it’s passing up the decrease stage error from YAML:

whereas parsing a block mapping
in "<unicode string>", line 5, column 1:
Parameters:
^ (line: 5)
anticipated <block finish>, however discovered '<block mapping begin>'
in "<unicode string>", line 10, column 2:
GroupDescriptionParam:
^ (line: 10)

The error message not less than provides you a number of good clues. It tells you exactly what line the issue is on and the ingredient inflicting the issue. It’s a stack hint so I feel actually we solely want the second block of the error message right here, however I can see in my case the issue is with GroupDescriptionParam.

That’s an incredible clue and it’s, in reality, on line 10 in my template. Nice. So what’s the precise downside?

I’ve a colon after the parameter identify. The kinds look appropriate. If you happen to’re youthful than me with excellent eyesight you would possibly spot it instantly however the first time I bought this error it took me a bit to see it. Now I acknowledge the error message.

I want an area earlier than the parameter identify to align it with the others:

The littlest issues like that may generally journey you up and waste time when the error message isn’t clear. While you get the same error in Python, it tells you, “Hey, you’ve gotten an indentation error.” It could be good if CloudFormation would do the identical factor right here no matter what YAML reviews.

At any charge…one other bug resolved in my code not less than. Hope that helps another person.

Teri Radichel

If you happen to favored this story please clap and comply with:

Medium: Teri Radichel or Electronic mail Record: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests providers by way of LinkedIn: Teri Radichel or IANS Analysis

© 2nd Sight Lab 2022

____________________________________________

Writer:

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 check or safety evaluation.

Have a Cybersecurity or Cloud Safety Query? Ask Teri Radichel by scheduling a name with IANS Analysis.

Cybersecurity & Cloud Safety Assets by Teri Radichel: Cybersecurity and Cloud safety lessons, articles, white papers, shows, and podcasts



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments