Sunday, June 19, 2022
HomeCyber Security(InvalidKeyId) when calling the PutParameter operation: Invalid keyId xxxxxxxxxxx (Service: AWSKMS; Standing...

(InvalidKeyId) when calling the PutParameter operation: Invalid keyId xxxxxxxxxxx (Service: AWSKMS; Standing Code: 400; Error Code: NotFoundException; Request ID: xxxxx Proxy: null) | by Teri Radichel | Bugs That Chew | Jun, 2022


Getting an InvalidKeyID error when making an attempt so as to add a parameter to AWS Methods Supervisor Parameter Retailer — however the important thing exists

This error is complicated as a result of the important thing handed into the key-id parameter on this command does exist:

aws ssm put-parameter --name $ami_latest --value $image_id --type SecureString --key-id $key --overwrite

The issue I had on this specific case was that I had two variables with the identical title, which grew to become obvious once I printed out the important thing worth.

Usually, this error would point out there’s a typo in the important thing title, it’s not set, or it doesn’t exist for another cause. Additionally ensure you cross within the full ARN, not simply the important thing title. The perfect factor you are able to do to forestall typos is to navigate to the KMS service, click on on the important thing, copy the ARN, and paste it into your code to forestall typos.

If this helped you otherwise you had this drawback, please clap!

Teri Radichel — Observe me @teriradichel on Twitter

© 2nd Sight Lab 2022

____________________________________________

About this weblog:

Wish to study extra about Cybersecurity and Cloud Safety? Try: 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