<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kaushik Garlapati on Medium]]></title>
        <description><![CDATA[Stories by Kaushik Garlapati on Medium]]></description>
        <link>https://medium.com/@kaushikg.usa?source=rss-27f9023df20a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ovaDx-lVx56Jxn8TAyYIag.png</url>
            <title>Stories by Kaushik Garlapati on Medium</title>
            <link>https://medium.com/@kaushikg.usa?source=rss-27f9023df20a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:09:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kaushikg.usa/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AWS Decode Error Message]]></title>
            <link>https://medium.com/@kaushikg.usa/aws-decode-error-message-daf9e2fa08f4?source=rss-27f9023df20a------2</link>
            <guid isPermaLink="false">https://medium.com/p/daf9e2fa08f4</guid>
            <category><![CDATA[aws-errors]]></category>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-encryption]]></category>
            <dc:creator><![CDATA[Kaushik Garlapati]]></dc:creator>
            <pubDate>Mon, 02 Oct 2023 14:14:30 GMT</pubDate>
            <atom:updated>2023-10-02T14:45:50.190Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many times where we all see a random alphanumeric block of letters in the error object returned by the IAM whenever we try to access some kind of an AWS resource/service. One such example is</p><pre>{<br>  &quot;errorMessage&quot;: &quot;An error occurred (InvalidRequestException) when calling the CreateTask operation: Invalid request made for creating ENI permissions. Reason: You are not authorized to perform this operation. Encoded authorization failure message:<br> xRSvs3pnc6AMlSu4GeLgghmNAUYj9Sv9PlMnMObxX9j0CzELoRPwqYakhODr_MeNFQBg9rNAMkcG-pOWUytSyS1PA71yNU4jO-8vwBvxQ4T0chelfo1ds8Hyrb_OCqVYIiB432Z5G7mYuyXrUfFWeHhzVRddLHuddz_ppH3EjioBiHsw_ijtE9Iady4mPtPjPRn0aeag_gO7dW7Wxus0LnDa57kQ9D_0Gw0W-QgKQaDheFKMKeoFNeuBrJnSq5iFJDKO0fJK-gKc5Ud6sXPIiojk-LUDZLxUMAr5HSZWCyzrixB1m1soIk0fFsjtmxFnP2FCisi8N8UNC1v3XvgCf<br>ViC9HlgdmAdztvlHMIdOba_0Ubmab7xX_W7SD_IBPP6oKwJFWkk9d98dD4MoIJVkuUYLQFeMU59uSEDPgZRFbSZbTKwYUbKsqq7aKfJW_k6ouwBRejC<br>Lhyp_Qz0Da0spvhyVbWLwKajIM47XCv1xFs_Ou-pV_8k05GG-Lno09-g7GqwxqnZ913iYRxDSK5IvYU_ZcPFGiTBWhFCZ9tatW3TzWrVM7XP7cIgW-zMN3LvyaN_BSTCTZ8PyntePbP7AdXe-G0HRHcHLapq04A3qWZwSAv3nSnj-OAMY9-Z-UUAtPJ7yhp3KExxbbsx2HI11FfhhVR1-fuxkChQ1es6D8LaEGDVVMqas8_7wGg6wRyHc8cffxlPrFOZHcNNaG2lvoS6oLRi2pspCwIC6NEJJwCmNw7XU0EiKxPNwfGnzhxL0Bu8NgyLc4lwsDZMyBPg5AbtQBm8g&quot;,</pre><p>We usually get this message if the role does not have more than one required policy action to access an AWS resource.</p><p>AWS Secure Token Service provides a command to actually decode the error message. The command to do this is</p><pre>aws sts decode-authorization-message --encoded-message --profile xxxxxxx</pre><p>The decoded message displays all the policy actions that are missing in the role. Once we add all of them, we are good to go.</p><p><strong><em>Additional Information:-<br></em></strong>If you get an error when you run the following command which is something like this:=</p><pre>An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::{AccountID}:role/* is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action</pre><p>Include the following policy in the role and it should start working.<em> Make sure to keep the Resource as *.</em></p><pre>{<br>  &quot;Action&quot;: [&quot;sts:DecodeAuthorizationMessage&quot;],<br>  &quot;Effect&quot;: &quot;Allow&quot;,<br>  &quot;Resource&quot;: &quot;*&quot;<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daf9e2fa08f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>