AWS EC2 'You are not authorized to perform this operation. Encoded authorization failure message:'

Viewed 25267

I am attempting to create an EC2 instance and get the following error message. How do I decode it ?

Launch Failed

You are not authorized to perform this operation. Encoded authorization failure message: KDmmJmkLKmQhatEqYt...MN3iUtfAa

2 Answers

use the following aws cli command from the console or CloudShell:

aws sts decode-authorization-message --encoded-message KDmmJmkLKm...iUtfAa

I use the following command:

aws sts decode-authorization-message --encoded-message 'KDmmJmkLKm...iUtfAa' | sed 's/\\"/"/g' | sed 's/^"//' | sed 's/"$//'
Related