Thursday, September 22, 2022
HomeCyber Security‘int’ object is just not iterable: CloudFormation | by Teri Radichel |...

‘int’ object is just not iterable: CloudFormation | by Teri Radichel | Bugs That Chew | Sep, 2022


The mysterious error that doesn’t actually clarify what’s happening with parameter-overrides

I bought the above error whereas attempting to execute a CloudFormation template. Truly I bought it a few instances and by the second time I bought it I already forgot what brought about it.

Wasted time. Wasted time…please higher error messages…

What occurred the primary time is that I used to be developing a string for my parameter overrides in a CLI name and inadvertently handed in an empty string, so the parameter overrides had been malformed.

How about an error that claims precisely that:

The parameter overrides worth malformed. It must be on this type ["x=y","z=q","b=d”]

The template truly executed so I although the error was in my template code and wasted time on that. I all the time print out my parameters on account of a myriad of cryptic error messages associated to parameter overrides so I can confirm they’re appropriate, so I lastly noticed what I used to be doing unsuitable.

By the best way there are a number of methods to cross in parameter overrides and I’ve had greatest luck with the above format — particularly when there are areas in one of many parameter values.

The second time I bought this error I truly thought I used to be completed with my code. In some way I inadvertently changed all my parameters with the #1. Don’t ask me how. However as soon as once more I bought this nonsensical error:

‘int’ object is just not iterable

This time the error was solely on the command line. The template by no means executed. Simply this:

So how was I speculated to know this was not an error in my template code however with the CLI name? Just a little trace can be good.

Now that I’ve written this down in a weblog publish hopefully I’ll keep in mind what the issue is subsequent time I see it.

Replace:

Much more weird…is that once I completed scripting this publish and went again and printed out my parameters to see what’s going on and with out making some other modifications the code labored once more. I don’t understand how parameter-overrides bought set to 1 or the way it bought mounted. Multi-threaded coding error? Undecided. Should see if it occurs once more.

Teri Radichel

When you preferred this story please clap and comply with:

Medium: Teri Radichel or E mail Checklist: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests providers 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 check 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



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments