Bugs That Bite
Published in

Bugs That Bite

mapping values are not allowed here

Error running CloudFormation Template

I got this error running a hastily written CloudFormation template:

mapping values are not allowed here
in “<unicode string>”, line 8, column 9:
Type: AWS::IAM::Group
^ (line: 8)

The problem was that I forgot a colon after the resource name on the prior line.

In other words this:

Resources:
batch_job_admin_group
Type: AWS::IAM::Group

Should have been this:

Resources:
batch_job_admin_group:
Type: AWS::IAM::Group

The error message might technical make sense to someone based on the underlying implementation in CloudFormation but this error message makes no sense and is not at all user-friendly for someone new to CloudFormation.

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Teri Radichel

Teri Radichel

Cloud Security Training and Penetration Testing | GSE, GSEC, GCIH, GCIA, GCPM, GCCC, GREM, GPEN, GXPN | AWS Hero | Infragard | IANS Faculty | 2ndSightLab.com