AWS - How-to decode authorization error messages
Today I came across an interesting issue in AWS
I was mapping Jenkins to launch EC2 slaves dynamically[yes finally, i did it :-)]
The Launch configuration was giving some errors unreadable and was really confused about whats wrong and where
Finally identified, that the AWS Authorization messages thrown out on any request is bound to generate an encoded message, which is really confusing !!!
The encode message thus generated as part of EC2 access permissions error will have to deciphered by decoding the same using the AWS CLI utility. Yessss !!! AWS has it all !!!
Usage Syntax:
Pre-requisites:
Today I came across an interesting issue in AWS
I was mapping Jenkins to launch EC2 slaves dynamically[yes finally, i did it :-)]
The Launch configuration was giving some errors unreadable and was really confused about whats wrong and where
Finally identified, that the AWS Authorization messages thrown out on any request is bound to generate an encoded message, which is really confusing !!!
The encode message thus generated as part of EC2 access permissions error will have to deciphered by decoding the same using the AWS CLI utility. Yessss !!! AWS has it all !!!
Usage Syntax:
- connect to the EC2 which is raising this permission/authorization error
- from AWS CLI, aws sts decode-authorization-message --encoded-message <<paste the encoded error here>>
- Now AWS responds with the hinted english text for us to understand the issue better
Pre-requisites:
- The EC2 instance profile role(if launched using a profile role) should have sts:DecodeAuthorizationMessage policy added
- If EC2 is launched via user - access permissions, then IAM user need to have this privilege to sts:DecodeAuthorizationMessage
Hope this was useful to my fellow Cloud folks !!!
Hi, I am John Smith I am Web Developer, It is an amazing blog thanks for the sharing the blog. Frantic infotech provide the java web development such as an information about software development for costumer service. Frantic infotech also provide the responsive web design. Theve delopment of advanced web applications is Orient Software’s specialty and we will successfully fulfill all your web application development requirements, from small-sized to wider-ranged projects.
ReplyDelete