Friday, September 2, 2022
HomeCyber SecurityMapping Values are Not Allowed Right here | by Teri Radichel |...

Mapping Values are Not Allowed Right here | by Teri Radichel | Bugs That Chew | Sep, 2022


Indentation error in CloudFormation template

Typically error messages don’t imply a lot to me. Mapping values should not allowed right here. What’s a mapping worth? The place is right here? As a result of truly this error message happens on a line after a syntax drawback. It is a frequent challenge with parsers as a result of they should learn previous the purpose of the error and it’s difficult and inefficient to report backwards.

I knew I had a working AWS CloudFormation template and the one change was an AWS Parameter. At all times a good suggestion to put in writing your code a small piece at a time so you possibly can simply discover difficult errors with error messages that don’t clearly clarify what the issue is.

On this case, I’d written a parameter like this in my template:

Parameters:
paramnamesuffix
Sort: String

There are two issues with the code above that will have contributed to this error. The primary is that I failed so as to add a semicolon after the parameter title (paramnamesuffix). The second is that the road with the parameter kind needs to be indented.

So my code ought to seem like this:

Parameters:
paramnamesuffix:
Sort: String

That solved the issue on this case.

Teri Radichel

In case you favored this story please clap and comply with:

Medium: Teri Radichel or Electronic mail Record: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests companies through 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 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