Tuesday, September 27, 2022
HomeCyber SecurityPutKeyPolicy failed on account of MalformedPolicyDocumentException | by Teri Radichel | Bugs...

PutKeyPolicy failed on account of MalformedPolicyDocumentException | by Teri Radichel | Bugs That Chunk | Sep, 2022


A single letter in a misspelled situation…

Typically the errors you get again actually could possibly be a bit extra useful. I don’t know if this error message is coming from KMS or CloudFormation however primarily based on my experiences to this point with KMS I’m guessing that CloudFormation calls a KMS API and prints out precisely what the KMS service returns.

PutKeyPolicy failed on account of MalformedPolicyDocumentException

Now when you might have a really lengthy and complicated key coverage, it might be tremendous good if no matter is parsing this key coverage could possibly be a bit extra particular. Don’t simply cross again regardless of the Yaml or JSON parse spits out however strive to determine what precisely is the error? At a minimal, point out what line triggered the error.

That is a type of points the place I stared and stared on the code and couldn’t see it. Properly, I’m not kidding once I say I ought to most likely put on glasses however it’s such a problem to go get them. I elevated the scale of the font after which it was apparent. I had a typo in my situation assertion.

I wrote:

stringEuals

when it ought to have been

stringEquals

Proper earlier than this I had one other error which was brought on by a misalignment of dashes in an inventory:

 -
-
-
-

There should be a method the coverage parser may assist a sista out and inform me what the issue is within the error message??

Anyway, I preserve writing these down as a result of I overlook what causes them after which I can return to my weblog to remind myself, however it looks as if this could possibly be a bit extra automated with higher error messages. If nothing else I want to jot down my very own parser sometime however I’m not getting paid by AWS to try this and I’ve different priorities in the meanwhile. 🙂

Teri Radichel

When you preferred this story please clap and observe:

Medium: Teri Radichel or E mail Record: 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 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 courses, 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