<?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 stefobaev on Medium]]></title>
        <description><![CDATA[Stories by stefobaev on Medium]]></description>
        <link>https://medium.com/@stefobaev?source=rss-6b4c10f9a356------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fGT6oQKkHJi0NpyiWuS92g.jpeg</url>
            <title>Stories by stefobaev on Medium</title>
            <link>https://medium.com/@stefobaev?source=rss-6b4c10f9a356------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 10:41:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stefobaev/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[Step by step how to login in AWS ECS Fargate Containers]]></title>
            <link>https://medium.com/@stefobaev/step-by-step-how-to-login-in-aws-ecs-fargate-containers-9d3a2ed39a32?source=rss-6b4c10f9a356------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d3a2ed39a32</guid>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[aws-fargate]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[aws-ecs]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[stefobaev]]></dc:creator>
            <pubDate>Thu, 14 Sep 2023 07:11:19 GMT</pubDate>
            <atom:updated>2023-09-15T13:17:17.456Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nK8zbopGzBd_xWWX1XbtfA.png" /></figure><p>In next steps I will guide you how to login in AWS eks fargate contantainer, you may wonder why you need this. Everybody know`s the fargate service is managed by AWS and this is not your work to login there , but in my short DevOps Engineer career I had to troubleshoot or to search information in this containers a lot of times. Now let`s get to work.</p><p>NOTICE! It`s needed to run “service” not “task”</p><ol><li>The first step is to install two needed plugins.From the two links from bellow you can install it.The first one is AWS CLI version 2 and the second one is session manager plugin for AWS CLI.</li></ol><ul><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">Installing or updating to the latest version of the AWS CLI</a></li><li><a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html">Install the Session Manager plugin for the AWS CLI</a></li></ul><p>2.For the second step you need to add new inline policy for your ecsTaskDefinition role. This is the role that you add when you create Task Definition.</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;Statement1&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;ssmmessages:CreateControlChannel&quot;,<br>                &quot;ssmmessages:CreateDataChannel&quot;,<br>                &quot;ssmmessages:OpenControlChannel&quot;,<br>                &quot;ssmmessages:OpenDataChannel&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;*&quot;<br>        }<br>    ]<br>}</pre><p>3.Third step is similar to the second, again you need to add new inline policy , but this time for your AWS User IAM role if you use local machine with credentials or for your IAM role for your ec2 Instance use.</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;Statement1&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: &quot;ecs:ExecuteCommand&quot;,<br>            &quot;Resource&quot;: &quot;*&quot;<br>        }<br>    ]<br>}</pre><p>4.After run your task in ecs fargate service this command will activate “enableExecuteCommand” for your service.</p><pre>aws ecs update-service --cluster cluster-name --task-definition task-definition-name --service service-name --enable-execute-command --desired-count 1</pre><p>5.Now you need to stop the running task and wait the service to create new task, wait till the task is “active”. This is needed to apply the changes from previous step to the task.</p><p>6.If you want to check your progres. after execute the command bellow you need to see “enableExecuteCommand=true” in the output.</p><pre>aws ecs describe-tasks --cluster cluster-name --tasks taskid</pre><p>!hint → taskid looks like “11f37244484b486e9e0eda9b94cc9f74” don`t use the copy button, he get the arn of the task. ←hint!</p><p>7.Final step , login into the container — command “/bin/bash” in this final flag from the command you can use another way to enter into the container depends on your os of the container. Here some other ways, to be more clear:</p><p>— command “/bash”</p><p>— command “/sh”</p><p>— command “powershell”</p><pre>aws ecs execute-command --cluster cluster-name --task task-id --container container-name --interactive --command &quot;/bin/bash&quot;</pre><h3>Feedback</h3><p>If you have any feedback or suggestions for improving my code, please leave a comment on this post or send me a message on my <a href="http://www.linkedin.com/in/stefan-baev-500a7323a">LinkedIn</a> . I would greatly appreciate your contributions to help make this article better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d3a2ed39a32" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>