'AWS EC2 'You are not authorized to perform this operation. Encoded authorization failure message:'
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
Solution 1:[1]
use the following aws cli command from the console or CloudShell:
aws sts decode-authorization-message --encoded-message KDmmJmkLKm...iUtfAa
Solution 2:[2]
I use the following command:
aws sts decode-authorization-message --encoded-message 'KDmmJmkLKm...iUtfAa' | sed 's/\\"/"/g' | sed 's/^"//' | sed 's/"$//'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | jlo-gmail | 
| Solution 2 | Effie | 

 amazon-web-services
amazon-web-services amazon-ec2
amazon-ec2