<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Dinesh Rathee</title>
    <description>The latest articles on Forem by Dinesh Rathee (@dineshrathee12).</description>
    <link>https://forem.com/dineshrathee12</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F304867%2F6a32c060-9504-4af6-af66-75852a9649f9.jpg</url>
      <title>Forem: Dinesh Rathee</title>
      <link>https://forem.com/dineshrathee12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/dineshrathee12"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Wed, 12 Nov 2025 05:05:10 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/-d63</link>
      <guid>https://forem.com/dineshrathee12/-d63</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/dcs-ink" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1271253%2F17530f3d-41f3-49e1-8182-163daf89e511.jpg" alt="dcs-ink"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/dcs-ink/how-to-set-up-the-openai-api-with-python-and-flask-2120" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;How to Set Up the OpenAI API with Python and Flask&lt;/h2&gt;
      &lt;h3&gt;dan ・ Feb 28 '24&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#python&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#flask&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#openai&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#ai&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>python</category>
      <category>flask</category>
      <category>openai</category>
      <category>ai</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Wed, 12 Nov 2025 02:32:10 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/-1dbd</link>
      <guid>https://forem.com/dineshrathee12/-1dbd</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/zuplo" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__org__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F9445%2F1cec1839-f678-42e3-9019-c2ce84a863f9.png" alt="Zuplo" width="550" height="466"&gt;
      &lt;div class="ltag__link__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2222056%2Fb8e6123c-1c51-44bb-9576-9f28d2a5c200.jpg" alt="" width="96" height="96"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/zuplo/complete-guide-to-the-openai-api-2025-2a0c" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Complete Guide to the OpenAI API 2025&lt;/h2&gt;
      &lt;h3&gt;Adrian Machado for Zuplo ・ Apr 22&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#ai&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#api&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>ai</category>
      <category>api</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Sat, 08 Nov 2025 04:11:54 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/-5cal</link>
      <guid>https://forem.com/dineshrathee12/-5cal</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/sangramz" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F226272%2F68d1989f-17a7-4b38-8a25-3c4dc5054031.jpeg" alt="sangramz"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/sangramz/build-a-recruitment-chatbot-with-python-and-openai-5293" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Build a Recruitment Chatbot with Python and OpenAI&lt;/h2&gt;
      &lt;h3&gt;Sangram Sundaray ・ May 7 '24&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#ai&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#chatgpt&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#python&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#tutorial&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>ai</category>
      <category>chatgpt</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Sat, 08 Nov 2025 03:28:23 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/-50ha</link>
      <guid>https://forem.com/dineshrathee12/-50ha</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/sreejinsreenivasan" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F372978%2Fc9a94495-2f3b-468b-b772-a6e7ec2d75ba.jpeg" alt="sreejinsreenivasan"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/sreejinsreenivasan/prompt-engineering-for-openai-chat-completions-4j70" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Prompt Engineering for OpenAI Chat Completions&lt;/h2&gt;
      &lt;h3&gt;sreejinsreenivasan ・ Feb 19 '24&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#llm&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#openai&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#promptengineering&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>llm</category>
      <category>openai</category>
      <category>promptengineering</category>
    </item>
    <item>
      <title>Amazing !!!</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Fri, 03 Oct 2025 20:43:57 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/amazing--3f0l</link>
      <guid>https://forem.com/dineshrathee12/amazing--3f0l</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/aws-builders" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__org__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F2794%2F88da75b6-aadd-4ea1-8083-ae2dfca8be94.png" alt="AWS Community Builders " width="350" height="350"&gt;
      &lt;div class="ltag__link__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F477272%2F958c85bb-4396-4666-abdf-b3824a6213e5.png" alt="" width="460" height="460"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/aws-builders/how-to-migrate-ecr-docker-images-between-repositories-with-automation-441h" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;How to Migrate ECR Docker Images Between Repositories (with Automation)&lt;/h2&gt;
      &lt;h3&gt;Todor Todorov for AWS Community Builders  ・ Sep 24&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#ecr&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#move&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#images&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#docker&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>ecr</category>
      <category>move</category>
      <category>images</category>
      <category>docker</category>
    </item>
    <item>
      <title>How to Copy a Security Group with Rules from one AWS Account to Another account ? 🧐✅👨‍💻👩‍💻</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Thu, 21 Jan 2021 03:45:23 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/how-to-copy-a-security-group-with-rules-from-one-aws-account-to-another-account-36mb</link>
      <guid>https://forem.com/dineshrathee12/how-to-copy-a-security-group-with-rules-from-one-aws-account-to-another-account-36mb</guid>
      <description>&lt;h4&gt;
  
  
  𝗜𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁 𝗡𝗼𝘁𝗲:  📝𝗢𝗽𝗶𝗻𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝗺𝘆 𝗼𝘄𝗻 🏁🙂 𝗔𝗻𝗱 𝗶𝘁 𝗶𝘀 𝗺𝘆 𝗽𝗲𝗿𝘀𝗼𝗻𝗮𝗹 𝗯𝗹𝗼𝗴.
&lt;/h4&gt;

&lt;h4&gt;
  
  
  As you might be already aware that you can copy rules from an existing security group to a new security group &lt;b&gt; within same Account&lt;/b&gt;, you can refer to an existing &lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/vpc-copy-security-group-rules/"&gt;AWS Knowledge Center Article&lt;/a&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;i&gt;But the Challenge comes in when you need to Achieve it &lt;b&gt; "From one AWS Account to another Account."&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/ihSGiK0waskWDJ8iyl/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/ihSGiK0waskWDJ8iyl/giphy.gif" alt="CMD Line - Copy SG"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;How to Copy a Security Group with Rules from one Account to Another ?&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Use this Python Script  &lt;a href="https://github.com/dineshrathee12/CopySecurityGroupWithRulesFromOneAWSAccountToAnotherAWSAccount/blob/main/CopySGFromOneAWSAccountToAnotherScript.py"&gt;&lt;strong&gt;CopySGFromOneAWSAccountToAnotherScript.py&lt;/strong&gt;&lt;/a&gt; , and you will need to provide the following details:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Source Account:&lt;/strong&gt;&lt;br&gt;
    - Access Key&lt;br&gt;
    - Secret Key&lt;br&gt;
    - Region&lt;br&gt;
    - Security Group Id&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Destination Account:&lt;/strong&gt;&lt;br&gt;
    - Access Key&lt;br&gt;
    - Secret Key&lt;br&gt;
    - Region&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Script Content&lt;/strong&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;# -*- coding: utf-8 -*-
"""
Created on Wed May 20 13:30:41 2021
@author: nikheel script, blog dinesh
"""

import boto3

sourceAccount={
        'AccessKey':'access key',
        'SecretKey':'secret key',
        'Region':'source region',
        'SecurityGroupId': 'security group id'
        }
destinationAccount = {
        'AccessKey':'access key',
        'SecretKey':'secret key',
        'Region':'destination region'
        }

# ------ Source Account ------ #

#set up boto3 client for source account

client = boto3.client(
        "ec2",
        region_name = sourceAccount['Region'],
        aws_access_key_id=sourceAccount['AccessKey'],
        aws_secret_access_key=sourceAccount['SecretKey']
        )

# describe security group that will be copied

response = client.describe_security_groups(
        GroupIds=[
                sourceAccount['SecurityGroupId']
                ]
        )["SecurityGroups"][0]

# extract ingress and egress rules for the security group

ingress = response["IpPermissions"]
egress = response["IpPermissionsEgress"]

# ------ Destination Account ------ #

#set up boto3 client for destination account

client = boto3.client(
        "ec2",
        region_name = destinationAccount['Region'],
        aws_access_key_id=destinationAccount['AccessKey'],
        aws_secret_access_key=destinationAccount['SecretKey']
        )

# create a new security group in the destination account

groupId = client.create_security_group(
        Description='security-group-from-{}'.format(sourceAccount['Region']),
        GroupName='security-group-from-{}'.format(sourceAccount['Region'])
        )["GroupId"]

# removed all egress rules from newly created security group

clearEgress = client.describe_security_groups(
        GroupIds=[groupId]
        )["SecurityGroups"][0]["IpPermissionsEgress"]

client.revoke_security_group_egress(
        GroupId=groupId,
        IpPermissions=clearEgress
        ) 

# create ingress and egress rules for the newly created security group   

client.authorize_security_group_ingress(
        GroupId=groupId,
        IpPermissions=ingress
        )
client.authorize_security_group_egress(
        GroupId=groupId,
        IpPermissions=egress
        )&lt;br&gt;&lt;/pre&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I have structured the above in an easy to view and edit dictionary format. These are the only updates that will be needed to be performed on this script.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;For the record, it is not advised to hard code access keys into our scripts as this can be a security risk if the script is accidentally exposed however, in this case, I just wanted to show the main principle of what needed to be done.&lt;br&gt;&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Created an example of your particular needs using the &lt;a href="https://aws.amazon.com/sdk-for-python/"&gt;&lt;strong&gt;Python Boto3 SDK for AWS&lt;/strong&gt;&lt;/a&gt; which you can find with attached script named &lt;a href="https://github.com/dineshrathee12/CopySecurityGroupWithRulesFromOneAWSAccountToAnotherAWSAccount/blob/main/CopySGFromOneAWSAccountToAnotherScript.py"&gt;&lt;strong&gt;"CopySGFromOneAWSAccountToAnotherScript.py"&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Once you have executed this script, it will perform the following functions in this order:&lt;br&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; describe the security group rule you would like to copy in the source account using the &lt;a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.describe_security_groups"&gt;&lt;b&gt;describe_security_groups API call&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; from the response obtained, we store the ingress and egress rules into variables for future reference&lt;/li&gt;
&lt;li&gt; we create a new security group in the destination account using the &lt;a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.create_security_group"&gt;&lt;b&gt;create_security_group API call&lt;/b&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; remove all egress rules from the newly created security group using the &lt;a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.revoke_security_group_egress"&gt;&lt;b&gt;revoke_security_group_egress API call&lt;/b&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; add the egress and ingress rules to the new security group using the API calls &lt;a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.authorize_security_group_ingress"&gt;&lt;b&gt;authorize_security_group_ingress&lt;/b&gt;&lt;/a&gt; and &lt;a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.authorize_security_group_egress"&gt;&lt;b&gt;authorize_security_group_egress&lt;/b&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/11kcEW8uNh8RwY/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/11kcEW8uNh8RwY/giphy.gif" alt="Security Group with Rules Copied to another Account"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/dineshrathee12/CopySecurityGroupWithRulesFromOneAWSAccountToAnotherAWSAccount/blob/main/CopySGFromOneAWSAccountToAnotherScript.py"&gt;&lt;strong&gt;Script - CopySGFromOneAWSAccountToAnotherScript.py&lt;/strong&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Thanks for reading.&lt;b&gt;&lt;br&gt;
Any feedback, please write it to me here in comments..&lt;br&gt;
&lt;b&gt;Also, 🤝🤗You can connect with us 🤝🤗&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://www.linkedin.com/in/dineshrathee12/"&gt;LinkedIn&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://dev.to/dineshrathee12"&gt;DevTo&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://github.com/dineshrathee12"&gt;GitHub&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://twitter.com/dinesh_rathee12"&gt;Twitter&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Script Credits - Nikheel Soni&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://www.linkedin.com/in/nikheelsoni/"&gt;Nikheel's LinkedIn&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://www.facebook.com/IonicSONIK"&gt;Nikheel's Facebook&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://twitter.com/ionicsonik"&gt;Nikheel's Twitter&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;𝗜𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁 𝗡𝗼𝘁𝗲:  📝𝗢𝗽𝗶𝗻𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝗺𝘆 𝗼𝘄𝗻 🏁🙂 𝗔𝗻𝗱 𝗶𝘁 𝗶𝘀 𝗺𝘆 𝗽𝗲𝗿𝘀𝗼𝗻𝗮𝗹 𝗯𝗹𝗼𝗴.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>linux</category>
      <category>devops</category>
      <category>cloud</category>
    </item>
    <item>
      <title>My 3️⃣✅ AWS Knowledge Center articles published to help customers on "AWS Lightsail" ☁️🔍⏳👨‍💻👩‍💻</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Fri, 15 Jan 2021 01:12:26 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/my-two-aws-knowledge-center-articles-published-to-help-customers-on-aws-lightsail-585n</link>
      <guid>https://forem.com/dineshrathee12/my-two-aws-knowledge-center-articles-published-to-help-customers-on-aws-lightsail-585n</guid>
      <description>&lt;p&gt;&lt;b&gt;Thought of sharing these with you&lt;/b&gt; 😊&lt;br&gt;
&lt;/p&gt;
&lt;h4&gt;
&lt;i&gt;"➜ As you might be aware that due to some new features Amazon Web Services (AWS) Lighsail Customers begin to run more complex environments and these articles can be handy.👨‍💻👩‍💻&lt;h4&gt;&lt;/h4&gt;&lt;/i&gt;

&lt;/h4&gt;
&lt;p&gt;&lt;u&gt;&lt;b&gt;I've written below two Articles on AWS Knowledge Center which you may find useful to manage your Lightsail Instances in your AWS account in a programmatic way using AWS CLI&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;b&gt;&lt;li&gt;&lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/lightsail-aws-cli-commands/"&gt; How can I manage my Lightsail instance using AWS CLI commands?&lt;/a&gt;&lt;/li&gt;&lt;/b&gt;
&lt;b&gt;&lt;li&gt;&lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/lightsail-aws-cli-static-ips/"&gt; How can I manage static IP addresses on my Lightsail instances using AWS CLI commands?&lt;/a&gt;&lt;/li&gt;&lt;/b&gt;
&lt;b&gt;&lt;li&gt;&lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/lightsail-aws-cli-snapshots-backups/"&gt; How can I manage my snapshots and create backups for my Lightsail instances using AWS CLI commands? &lt;/a&gt;&lt;/li&gt;&lt;/b&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 😇 Happy learning 😇
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/D0EjguuQzYr9m/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/D0EjguuQzYr9m/giphy.gif" alt="Happy Learning"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>linux</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Sharing my next AWS Knowledge Center article published on helping customers to fix  Encryption related issues☁️🔍⏳👨‍💻👩‍💻</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Fri, 09 Oct 2020 16:35:16 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/sharing-my-next-aws-knowledge-center-article-published-on-helping-customer-fixing-encryption-related-issues-49c5</link>
      <guid>https://forem.com/dineshrathee12/sharing-my-next-aws-knowledge-center-article-published-on-helping-customer-fixing-encryption-related-issues-49c5</guid>
      <description>&lt;p&gt;&lt;b&gt;Thought of sharing these with you&lt;/b&gt; 😊&lt;/p&gt;

&lt;p&gt;➕1️⃣&lt;br&gt;
𝗦𝗵𝗮𝗿𝗶𝗻𝗴 𝗺𝘆 𝗻𝗲𝘅𝘁 𝘁𝗿𝗼𝘂𝗯𝗹𝗲𝘀𝗵𝗼𝗼𝘁𝗶𝗻𝗴 𝗮𝗿𝘁𝗶𝗰𝗹𝗲 𝗽𝘂𝗯𝗹𝗶𝘀𝗵𝗲𝗱 𝗼𝗻 &lt;b&gt;AWS&lt;/b&gt; 𝐊𝐧𝐨𝐰𝐥𝐞𝐝𝐠𝐞 𝐂𝐞𝐧𝐭𝐞𝐫 𝐭𝐨 𝐡𝐞𝐥𝐩 𝐜𝐮𝐬𝐭𝐨𝐦𝐞𝐫𝐬 ✍️👨‍💻👩‍💻⛔💭✅😇🤝&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;b&gt;&lt;li&gt;&lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/view-ami-snapshot-encryption-details/"&gt; 𝙃𝙤𝙬 𝙘𝙖𝙣 𝙄 𝙫𝙞𝙚𝙬 𝙚𝙣𝙘𝙧𝙮𝙥𝙩𝙞𝙤𝙣 𝙞𝙣𝙛𝙤𝙧𝙢𝙖𝙩𝙞𝙤𝙣 𝙖𝙗𝙤𝙪𝙩 𝙢𝙮 𝘼𝙈𝙄 𝙤𝙧 𝙨𝙣𝙖𝙥𝙨𝙝𝙤𝙩?&lt;/a&gt;&lt;/li&gt;&lt;/b&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/IoP0PvbbSWGAM/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/IoP0PvbbSWGAM/giphy.gif" alt="Encryption"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  𝐁𝐚𝐜𝐤𝐠𝐫𝐨𝐮𝐧𝐝:
&lt;/h1&gt;

&lt;p&gt;𝑴𝒂𝒏𝒚 𝑨𝑾𝑺 𝑪𝒖𝒔𝒕𝒐𝒎𝒆𝒓𝒔 𝒖𝒔𝒆 𝑨𝑾𝑺 𝑬𝑩𝑺 𝒗𝒐𝒍𝒖𝒎𝒆 𝒆𝒏𝒄𝒓𝒚𝒑𝒕𝒊𝒐𝒏 𝒖𝒔𝒊𝒏𝒈 𝑲𝑴𝑺 𝒌𝒆𝒚𝒔 𝒘𝒉𝒊𝒄𝒉 𝒑𝒓𝒐𝒕𝒆𝒄𝒕𝒔 𝒅𝒂𝒕𝒂 𝒇𝒐𝒓 𝒄𝒖𝒔𝒕𝒐𝒎𝒆𝒓𝒔. 𝑺𝒐𝒎𝒆𝒕𝒊𝒎𝒆𝒔 𝒄𝒖𝒔𝒕𝒐𝒎𝒆𝒓𝒔 𝒘𝒐𝒖𝒍𝒅 𝒘𝒐𝒏𝒅𝒆𝒓 𝒘𝒉𝒚 𝒕𝒉𝒆𝒚 𝒂𝒓𝒆 𝒏𝒐𝒕 𝒂𝒃𝒍𝒆 𝒕𝒐 𝒔𝒉𝒂𝒓𝒆 𝒔𝒏𝒂𝒑𝒔𝒉𝒐𝒕𝒔 𝒐𝒓 𝑨𝑴𝑰𝒔. 𝑻𝒉𝒊𝒔 𝒂𝒓𝒕𝒊𝒄𝒍𝒆 𝒘𝒊𝒍𝒍 𝒉𝒆𝒍𝒑 𝒚𝒐𝒖 𝒊𝒏 𝒐𝒓𝒅𝒆𝒓 𝒕𝒐 𝒊𝒅𝒆𝒏𝒕𝒊𝒇𝒚 𝒅𝒆𝒕𝒂𝒊𝒍𝒔 𝒐𝒇 𝒕𝒉𝒆 𝒓𝒆𝒔𝒐𝒖𝒓𝒄𝒆𝒔 (𝒂𝒔𝒔𝒐𝒄𝒊𝒂𝒕𝒆𝒅 𝒔𝒏𝒂𝒑𝒔𝒉𝒐𝒕, 𝑲𝑴𝑺 𝒌𝒆𝒚 𝒊𝒏 𝒖𝒔𝒆) 𝒘𝒉𝒊𝒄𝒉 𝒉𝒆𝒍𝒑𝒔 𝒊𝒏 𝒅𝒆𝒄𝒊𝒅𝒊𝒏𝒈 𝒂𝒑𝒑𝒓𝒐𝒑𝒓𝒊𝒂𝒕𝒆 𝒕𝒓𝒐𝒖𝒃𝒍𝒆𝒔𝒉𝒐𝒐𝒕𝒊𝒏𝒈 𝒂𝒄𝒕𝒊𝒐𝒏𝒔 𝒃𝒂𝒔𝒆𝒅 𝒐𝒏 𝒕𝒉𝒊𝒔 𝒊𝒏𝒇𝒐𝒓𝒎𝒂𝒕𝒊𝒐𝒏.&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;h4&gt;&lt;b&gt;𝐈𝐟 𝐲𝐨𝐮 𝐧𝐞𝐞𝐝 𝐦𝐨𝐫𝐞 𝐞𝐱𝐭𝐞𝐧𝐝𝐞𝐝 𝐝𝐞𝐭𝐚𝐢𝐥𝐬 𝐨𝐟 𝐭𝐡𝐞𝐬𝐞 𝐚𝐫𝐭𝐢𝐜𝐥𝐞𝐬, 𝐩𝐥𝐞𝐚𝐬𝐞 𝐫𝐞𝐟𝐞𝐫 𝐦𝐲 𝐛𝐥𝐨𝐠 𝐩𝐨𝐬𝐭 𝐛𝐞𝐥𝐨𝐰:&lt;/b&gt;&lt;/h4&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;b&gt;[+]&lt;a href="https://dev.to/dineshrathee12/how-to-get-details-of-an-ami-or-snapshot-if-it-is-encrypted-and-with-which-key-aws-managed-cmk-or-customer-manager-cmk-aws-7b0"&gt;https://dev.to/dineshrathee12/how-to-get-details-of-an-ami-or-snapshot-if-it-is-encrypted-and-with-which-key-aws-managed-cmk-or-customer-manager-cmk-aws-7b0&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/dineshrathee12/how-to-get-details-of-an-ami-or-snapshot-if-it-is-encrypted-and-with-which-key-aws-managed-cmk-or-customer-manager-cmk-aws-7b0"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QBVe37Ig--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ms8e01a1xw2mqjrbwtkg.JPG" alt="how-to-get-details-of-an-ami-or-snapshot-if-it-is-encrypted-and-with-which-key-aws-managed-cmk-or-customer-manager-cmk-aws"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 😇 𝙃𝙖𝙥𝙥𝙮 𝙡𝙚𝙖𝙧𝙣𝙞𝙣𝙜😇
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/Q61LJj43H48z1FIK4X/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/Q61LJj43H48z1FIK4X/giphy.gif" alt="Happy Learning"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>aws</category>
      <category>devops</category>
    </item>
    <item>
      <title>🤝👥Join my Facebook Group "AWS Troubleshooting Tips and Tricks &amp; Blogs" ☁️🔍⏳👨‍💻👩‍💻🛠️✅</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Sun, 13 Sep 2020 00:34:13 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/join-my-facebook-group-aws-troubleshooting-tips-and-tricks-blogs-4afk</link>
      <guid>https://forem.com/dineshrathee12/join-my-facebook-group-aws-troubleshooting-tips-and-tricks-blogs-4afk</guid>
      <description>&lt;p&gt;&lt;a href="https://i.giphy.com/media/7J4P7cUur2DlErijp3/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/7J4P7cUur2DlErijp3/giphy.gif" alt="AWS Cloud"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Thought of sharing this with you&lt;/b&gt; 😊&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;b&gt;I've started posting my articles here on Facebook group as well&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;

&lt;h2&gt;&lt;b&gt;&lt;a href="https://www.facebook.com/groups/2588950954550770/?ref=gs&amp;amp;fref=gs&amp;amp;dti=2588950954550770&amp;amp;hc_location=group"&gt;"AWS Troubleshooting Tips and Tricks &amp;amp; Blogs"☁️🔍⏳👨‍💻👩‍💻🛠️✅&lt;/a&gt;&lt;/b&gt;&lt;/h2&gt;




&lt;h2&gt;
  
  
  &lt;h3&gt;&lt;b&gt;You can join here &lt;/b&gt;&lt;/h3&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;b&gt;[+] &lt;a href="https://www.facebook.com/groups/2588950954550770/?ref=gs&amp;amp;fref=gs&amp;amp;dti=2588950954550770&amp;amp;hc_location=group"&gt;https://www.facebook.com/groups/2588950954550770/?ref=gs&amp;amp;fref=gs&amp;amp;dti=2588950954550770&amp;amp;hc_location=group&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.facebook.com/groups/2588950954550770/?ref=gs&amp;amp;fref=gs&amp;amp;dti=2588950954550770&amp;amp;hc_location=group"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g9CdR4BT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5k7ialgarn56qljskx30.JPG" alt="AWS Troubleshooting Tips and Tricks &amp;amp; Blogs"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/ZB9CwEZowWFQzHDqN2/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/ZB9CwEZowWFQzHDqN2/giphy.gif" alt="Happy Learning"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ☁️🔍⏳👨‍💻👩‍💻🛠️✅😇 Happy learning 😇☁️🔍⏳👨‍💻👩‍💻🛠️✅
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>linux</category>
      <category>cloud</category>
    </item>
    <item>
      <title>My two AWS Knowledge Center articles published  to help customers on "AWS Service Quotas" ☁️🔍⏳👨‍💻👩‍💻</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Fri, 11 Sep 2020 09:37:13 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/my-two-aws-knowledge-center-articles-published-to-help-customers-on-aws-service-quotas-2106</link>
      <guid>https://forem.com/dineshrathee12/my-two-aws-knowledge-center-articles-published-to-help-customers-on-aws-service-quotas-2106</guid>
      <description>&lt;p&gt;&lt;b&gt;Thought of sharing these with you&lt;/b&gt; 😊&lt;br&gt;
&lt;/p&gt;
&lt;h4&gt;
&lt;i&gt;" As you might be already aware of that you can request, view, and manage "AWS service quotas", formerly known as "limits", from the &lt;b&gt;&lt;a href="https://console.aws.amazon.com/servicequotas/home"&gt;Service Quotas Console&lt;/a&gt;&lt;/b&gt; or using AWS CLI commands&lt;h4&gt;&lt;/h4&gt;&lt;/i&gt;

&lt;/h4&gt;
&lt;p&gt;&lt;u&gt;&lt;b&gt;I've written below two Articles on AWS Knowledge Center which you may find useful to control AWS account quotas or limits in a programmatic way using AWS CLI&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;b&gt;&lt;li&gt;&lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/request-service-quota-increase-cli/"&gt; How can I request, view, and manage service quota increase requests using AWS CLI commands ?&lt;/a&gt;&lt;/li&gt;&lt;/b&gt;
&lt;b&gt;&lt;li&gt;&lt;a href="https://aws.amazon.com/premiumsupport/knowledge-center/troubleshoot-service-quotas-cli-commands/"&gt; How can I troubleshoot errors using the AWS CLI to manage my service quota requests?&lt;/a&gt;&lt;/li&gt;&lt;/b&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  &lt;h4&gt;&lt;b&gt;If you need more extended details of these articles, please refer my blog post below :&lt;/b&gt;&lt;/h4&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;b&gt;[+] &lt;a href="https://dev.to/dineshrathee12/manage-my-service-quotas-also-referred-to-as-limits-in-aws-account-using-aws-cli-commands-5cg2"&gt;https://dev.to/dineshrathee12/manage-my-service-quotas-also-referred-to-as-limits-in-aws-account-using-aws-cli-commands-5cg2&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/dineshrathee12/manage-my-service-quotas-also-referred-to-as-limits-in-aws-account-using-aws-cli-commands-5cg2"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gf4ntBcc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/etbqgudw22ptild4zrhb.JPG" alt="manage-my-service-quotas-also-referred-to-as-limits-in-aws-account-using-aws-cli-commands-5cg2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 😇 Happy learning 😇
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/NKkZbYYsZmRzi/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/NKkZbYYsZmRzi/giphy.gif" alt="Happy Learning"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>linux</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Via AWS CLI-☁️📢Automating my post - Using AWS Systems Manager Automation Document🧐to fix✅SSH issue on a Linux EC2 Instance👨‍💻👩‍💻</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Mon, 20 Jul 2020 00:48:52 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/via-aws-cli-automating-my-post-using-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-3inn</link>
      <guid>https://forem.com/dineshrathee12/via-aws-cli-automating-my-post-using-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-3inn</guid>
      <description>&lt;h3&gt;
  
  
  &lt;b&gt; How to execute actions listed under &lt;a href="https://dev.to/dineshrathee12/how-to-use-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-7n3"&gt;Post&lt;/a&gt; using AWS CLI&lt;/b&gt;
&lt;/h3&gt;

&lt;p&gt;We've followed AWS Console Steps to use AWS Systems Manager Automation Document - "AWSSupport-ExecuteEC2Rescue" to fix SSH issue on a Linux EC2 Instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;To check console steps , please click below link&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;b&gt;&lt;a href="https://dev.to/dineshrathee12/how-to-use-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-7n3"&gt; How to use AWS Systems Manager Automation Document - "AWSSupport-ExecuteEC2Rescue" to fix SSH issue on a Linux EC2 Instance&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Now, I will be explaining you how we can achieve this using AWS CLI commands using simple steps:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/26gssNZ4EF6c8Simk/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/26gssNZ4EF6c8Simk/giphy.gif" alt="CMD Line"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;em&gt;Make sure you have AWS CLI setup and you've enough permissions to use SSM to execute these documents.&lt;/em&gt;&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;If you have admin privileges , it will be great !&lt;/strong&gt;&lt;/p&gt;


&lt;li&gt;If you would like to know how to install and configure AWS CLI, please refer &lt;b&gt;&lt;a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html"&gt; this link &lt;/a&gt;&lt;/b&gt;
&lt;/li&gt;


&lt;h3&gt;
  
  
  &lt;b&gt;Steps Using AWS CLI:&lt;/b&gt;
&lt;/h3&gt;



&lt;p&gt;• Running the Automation Document for an &lt;strong&gt;unreachable Instance (i-xxxxxxxxx) :&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# aws ssm start-automation-execution --document-name "AWSSupport-ExecuteEC2Rescue" --document-version "\$DEFAULT" --parameters '{"UnreachableInstanceId":["i-xxxxxxxxxxxxx"],"EC2RescueInstanceType":["t2.small"],"SubnetId":["CreateNewVPC"]}' --region eu-west-2
{
    **"AutomationExecutionId": "43f1918f-b0bb-4a25-xxxxxxxxxxxxx"**
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;• You can also see the automation scheduled &lt;strong&gt;(using Console)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q-dzBnPb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ks0lcz7cptp3z8wiv5xk.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q-dzBnPb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ks0lcz7cptp3z8wiv5xk.jpg" alt="01"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Checking the &lt;strong&gt;Automation progress / Status:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# aws ssm get-automation-execution --automation-execution-id "43f1918f-b0bb-4a25-xxxxxxxxxxxxxxxx" --output text --query "AutomationExecution.AutomationExecutionStatus"  --region eu-west-2
**InProgress**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;• Let’s wait for few mins to get this &lt;strong&gt;completed&lt;/strong&gt; and we can check the &lt;strong&gt;status&lt;/strong&gt; again:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# aws ssm get-automation-execution --automation-execution-id "43f1918f-b0bb-4a25-xxxxxxxxxxxxxx" --output text --query "AutomationExecution.AutomationExecutionStatus"  --region eu-west-2
**Success**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;• You can  also verify this &lt;strong&gt;(using Console)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GP8h-xS7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hskm6gmwmoemx5bbsnwi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GP8h-xS7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hskm6gmwmoemx5bbsnwi.jpg" alt="02"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• After the Status is returned as &lt;strong&gt;“Success”&lt;/strong&gt;, Let’s try to SSH to the Instance again: &lt;strong&gt;(Success)&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# ssh -i "eu-west-2_key_pair.pem" ec2-user@ec2-xxxxxxxxx.eu-west-2.compute.amazonaws.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JusWUc7F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/2gbkj9hea5r5o1egz1t4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JusWUc7F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/2gbkj9hea5r5o1egz1t4.jpg" alt="03"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/b&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-awssupport-executeec2rescue.html"&gt;AWSSupport-ExecuteEC2Rescue&lt;/a&gt;&lt;/strong&gt;  is a new Automation document that automates all  the steps required to fix common issues on your unreachable Windows &amp;amp; Linux instance using respective &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Linux-Server-EC2Rescue.html"&gt;EC2Rescue for Linux&lt;/a&gt;&lt;/strong&gt; &amp;amp;  &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Windows-Server-EC2Rescue.html"&gt;EC2Rescue for Windows&lt;/a&gt;&lt;/strong&gt; tool tools, which is a framework for executing diagnostic and troubleshooting modules for analyzing and remediating issues.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;strong&gt;Overall&lt;/strong&gt;, It will save a lot  of time which is being invested with manual process of detach, attach volume and further steps to troubleshoot issues. This document does all  the steps for you in an automated way in just  few  minutes.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Tip&lt;/b&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;With the integration between CloudWatch Events and Systems Manager&lt;br&gt;
Automation, you can  run AWSSupport-ExecuteEC2Rescue automatically in&lt;br&gt;
response to an event in your infrastructure.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/11kcEW8uNh8RwY/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/11kcEW8uNh8RwY/giphy.gif" alt="SSH issue Fixed"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Thanks for reading.&lt;b&gt;&lt;br&gt;
Any feedback, please write it to me here in comments..&lt;br&gt;
&lt;b&gt;Also, 🤝🤗You can connect with me🤝🤗&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://www.linkedin.com/in/%E2%80%8Bdineshrathee12"&gt;LinkedIn&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://dev.to/dineshrathee12"&gt;DevTo&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://github.com/dineshrathee12"&gt;GitHub&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://twitter.com/dinesh_rathee12"&gt;Twitter&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>linux</category>
      <category>devops</category>
    </item>
    <item>
      <title>👨‍💻👩‍💻How to use AWS Systems Manager Automation Document🧐to fix✅SSH issue on a Linux EC2 Instance☁️📢</title>
      <dc:creator>Dinesh Rathee</dc:creator>
      <pubDate>Mon, 20 Jul 2020 00:44:41 +0000</pubDate>
      <link>https://forem.com/dineshrathee12/how-to-use-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-7n3</link>
      <guid>https://forem.com/dineshrathee12/how-to-use-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-7n3</guid>
      <description>&lt;p&gt;&lt;b&gt;When you face SSH issues over EC2 Instance👨‍💻☁️, What procedure do you follow ?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/3oEjHGJE2H5KMDjyj6/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/3oEjHGJE2H5KMDjyj6/giphy.gif" alt="SSH issue"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Stop the Instance --&amp;gt; detach root volume --&amp;gt; attach volume to rescue    Instance --&amp;gt; and then further steps to troubleshoot issue&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;b&gt;Right ?🤔💭&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;Here's something to Automate this procedure⏩⏩&lt;/b&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;i&gt;"This procedure will save a lot  of time which we invest with manual process. AWS Systems Manager Automation Document - &lt;strong&gt;&lt;a href="https://console.aws.amazon.com/systems-manager/automation/execute/AWSSupport-ExecuteEC2Rescue"&gt;"AWSSupport-ExecuteEC2Rescue"&lt;/a&gt;&lt;/strong&gt; does all  the steps for you in an automated fashion."&lt;/i&gt;

&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;How it works ?👨‍🏭&lt;/b&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;It uses &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Linux-Server-EC2Rescue.html"&gt;EC2Rescue for Linux&lt;/a&gt;&lt;/strong&gt; &amp;amp;  &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Windows-Server-EC2Rescue.html"&gt;EC2Rescue for Windows&lt;/a&gt;&lt;/strong&gt; tool, which is a framework for executing diagnostic and troubleshooting modules for analyzing and remediating issues on &lt;strong&gt;Windows and Linux instances.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;&lt;strong&gt;Here I will discuss about  most common SSH issue on Linux instance.&lt;/strong&gt;&lt;/code&gt;&lt;/p&gt;




&lt;p&gt;&lt;i&gt;&lt;b&gt;Also, I will guide you through Console way to get familiar with the workflow. If you're interested in using AWS CLI, please check out my &lt;a href="https://dev.to/dineshrathee12/via-aws-cli-automating-my-post-using-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-3inn"&gt;Blog Post&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;b&gt;How "AWSSupport-ExecuteEC2Rescue" works in the background ?💻&lt;/b&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;This Automation document executes &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Linux-Server-EC2Rescue.html"&gt;EC2Rescue for Linux&lt;/a&gt;&lt;/strong&gt; on an offline instance (&lt;em&gt;which does not need to have the SSM agent installed or be user-accessible&lt;/em&gt;) by creating rescue resources, moving the root volume of the target instance to the rescue instance, and later reattaching the root volume to the original instance. - &lt;strong&gt;All  will be done via an automated set of steps in the document, which are as listed here:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Muv880cE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bt4xxh2mdgclz287c35w.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Muv880cE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bt4xxh2mdgclz287c35w.jpg" alt='How AWS Systems Manager Automation Document - "AWSSupport-ExecuteEC2Rescue" works in the background'&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To know more  on this document walkthrough, please check &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-ec2rescue.html"&gt;here.&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;Prerequisites🔎⚙️&lt;/b&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;Before you begin with next steps, you should  have:&lt;/em&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;Required: "Instance ID"&lt;/b&gt; of the unreachable instance. You will specify this ID in the procedure.&lt;/li&gt;
&lt;li&gt;In addition, there are some &lt;b&gt;optional parameters&lt;/b&gt;, which you can  refer &lt;b&gt;&lt;a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-ec2rescue.html#automation-ec2rescue-begin"&gt; here&lt;/a&gt;&lt;/b&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;The IAM role&lt;/b&gt; for this execution. If no role is specified, AWS Systems Manager Automation will use &lt;b&gt;&lt;u&gt;your IAM permissions of the user logged in&lt;/u&gt;&lt;/b&gt; to execute this document. To know more  on granting permissions by using IAM policies, please refer &lt;b&gt;&lt;a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-ec2rescue.html#automation-ec2rescue-access-iam"&gt; here&lt;/a&gt;&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;I will explain more  in details with below real time example.🎯🎯&lt;/b&gt;
&lt;/h3&gt;

&lt;p&gt;Now, I  will show you how to use AWS Systems Manager Automation Document - &lt;strong&gt;&lt;a href="https://console.aws.amazon.com/systems-manager/automation/execute/AWSSupport-ExecuteEC2Rescue"&gt;"AWSSupport-ExecuteEC2Rescue"&lt;/a&gt;&lt;/strong&gt; in real time use-case for a common Linux SSH issue.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--o-vKd4bm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5exsj411223mssmnhoou.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--o-vKd4bm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5exsj411223mssmnhoou.jpg" alt="2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Issue😨😨:-&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;(I have changed permissions of *&lt;/em&gt;/home directory to 777** and now I am not able to SSH and getting &lt;strong&gt;“Permission denied"&lt;/strong&gt;)*🚫😜&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iOI3bO2i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/m8adwplqooqtberzgsmw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iOI3bO2i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/m8adwplqooqtberzgsmw.jpg" alt="3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Checking SSH verbose output:&lt;/b&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# ssh -vvv -i "eu-west-2_key_pair.pem" ec2-user@ec2-xxxxxxxxxxx.eu-west-2.compute.amazonaws.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YeOkQ5Mk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/g1nf4c571719grkkv1yv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YeOkQ5Mk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/g1nf4c571719grkkv1yv.jpg" alt="4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Getting permission denied error😖😖&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  &lt;b&gt; Now , let’s use &lt;strong&gt;&lt;a href="https://console.aws.amazon.com/systems-manager/automation/execute/AWSSupport-ExecuteEC2Rescue"&gt;"AWSSupport-ExecuteEC2Rescue"&lt;/a&gt;&lt;/strong&gt; Automation Document to Fix this issue:&lt;/b&gt;
&lt;/h3&gt;

&lt;p&gt;• Open the &lt;strong&gt;AWS Systems Manager&lt;/strong&gt; via EC2 Console -- Type &lt;a href="https://console.aws.amazon.com/systems-manager/"&gt;&lt;strong&gt;"Systems Manager"&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qOHh6x4x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/v6vmjigxteh1f6nz2dai.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qOHh6x4x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/v6vmjigxteh1f6nz2dai.jpg" alt="5"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• In the navigation pane, choose &lt;strong&gt;Automation&lt;/strong&gt; ----&amp;gt; Choose &lt;strong&gt;Execute Automation&lt;/strong&gt;.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0LH7Yaey--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/os3x09pk0fs9oaisi3lm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0LH7Yaey--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/os3x09pk0fs9oaisi3lm.jpg" alt="6"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• In the Automation document section categories, You can  choose &lt;strong&gt;"Self service support workflows"&lt;/strong&gt; and check for the Document named - &lt;strong&gt;"AWSSupport-ExecuteEC2Rescue"&lt;/strong&gt; like below and click &lt;strong&gt;“Next”&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Kn2mkgox--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mib1v5t84iz047csmwh2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Kn2mkgox--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mib1v5t84iz047csmwh2.jpg" alt="7"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Please provide the &lt;strong&gt;Instance ID&lt;/strong&gt; of &lt;strong&gt;unreachable Instance (Required)&lt;/strong&gt; and click &lt;strong&gt;Execute&lt;/strong&gt; button to start Automation workflow:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--v87j7cub--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/8sohsqwri41dtt9qpiaa.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--v87j7cub--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/8sohsqwri41dtt9qpiaa.jpg" alt="8"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Some Information on Input Parameters:&lt;/em&gt;&lt;/strong&gt;💭💭&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;strong&gt;Mandatory / Required:&lt;/strong&gt;&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UnreachableInstanceId  : (Required) ID&lt;/strong&gt; of your unreachable EC2 instance.
&lt;strong&gt;IMPORTANT:&lt;/strong&gt; AWS Systems Manager Automation stops this instance, and creates an AMI before attempting any operations. Data stored in instance store volumes will be lost. The public IP address will change if you are not using an Elastic IP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EC2RescueInstanceType : (Required)&lt;/strong&gt; The EC2 instance type for the EC2Rescue instance. Recommended size: t2.small. &lt;em&gt;(by default it is
auto-selected )&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;&lt;strong&gt;Optional but could be really useful:&lt;/strong&gt;&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LogDestination: (Optional)&lt;/strong&gt; S3 bucket name in your account where you want to upload the troubleshooting logs. 
&amp;gt; Make sure the bucket policy does not grant unnecessary read/write
&amp;gt; permissions to parties that do not need access to the collected logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Now, Let’s proceed further&lt;/strong&gt;&lt;br&gt;
• Once you click on &lt;strong&gt;"Execute"&lt;/strong&gt; Button, the Automation will start and you can  the Status &lt;strong&gt;“In Progress”:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--R3QmwhoY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ib9xgphjvu6dzufjpbdh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--R3QmwhoY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ib9xgphjvu6dzufjpbdh.jpg" alt="9"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• To see more  details you can  click on the &lt;strong&gt;"Execution ID"&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XPXISl4H--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4yezbv78tl2etc39oea3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XPXISl4H--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4yezbv78tl2etc39oea3.jpg" alt="10"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;&lt;strong&gt;Checking what it does in the background:&lt;/strong&gt;&lt;/b&gt;
&lt;/h3&gt;

&lt;p&gt;• Procedure creates an &lt;strong&gt;SSM helper Instance / recovery&lt;/strong&gt;  Instance with name tag &lt;strong&gt;AWS-Support-EC2Rescue-I-xxxx&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YrIg3hBP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bq2qsprm2c8uw4tp0zvj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YrIg3hBP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bq2qsprm2c8uw4tp0zvj.jpg" alt="11"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Creates an &lt;strong&gt;AMI&lt;/strong&gt; as well for Backup Purpose before it executes further steps:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wb6r78gt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/7kbmz0em6w9pexxumt0i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wb6r78gt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/7kbmz0em6w9pexxumt0i.jpg" alt="12"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Stops the &lt;strong&gt;Problematic Unreachable Instance&lt;/strong&gt; and Detaches the Root Volume from it and Attaches on the SSM enabled Recovery/Helper Instance:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--shjL-rhH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1k0f2smyn03s6d1f99hg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--shjL-rhH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1k0f2smyn03s6d1f99hg.jpg" alt="13"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Then procedure runs &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Linux-Server-EC2Rescue.html"&gt;EC2Rescue for Linux&lt;/a&gt;&lt;/strong&gt; over helper Instance to Fix the Issue and you can  also track the steps below:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fX7IqboP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/vp4osg04efdg7bvxrj32.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fX7IqboP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/vp4osg04efdg7bvxrj32.jpg" alt="14"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• You can  always  check the details of each &lt;strong&gt;"Execution ID"&lt;/strong&gt; and its Associated steps using &lt;strong&gt;“Step ID”&lt;/strong&gt; , For example, checking details of &lt;strong&gt;“Step-2”&lt;/strong&gt; below:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vp94d_z7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/cx4e7ulig9fg32jx1757.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vp94d_z7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/cx4e7ulig9fg32jx1757.jpg" alt="15"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Please Note&lt;/strong&gt; – &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“It may show a step failed for Windows since the Instance is Linux,&lt;br&gt;
So don't worry about  it”🙆‍♂️👍&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2E9CNWvO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/nv7p3a31rvw9443xuyu2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2E9CNWvO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/nv7p3a31rvw9443xuyu2.jpg" alt="16"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• You can  monitor the &lt;strong&gt;Overall Status&lt;/strong&gt; of the Procedure using the Execution Status tab under Automation Executions and wait for it to get &lt;strong&gt;“Success&lt;/strong&gt;” which marks it as complete.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yxOubvI0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/45xz8gn6904a3ay6s588.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yxOubvI0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/45xz8gn6904a3ay6s588.jpg" alt="17"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• &lt;em&gt;Now, checking the Instance state again - &lt;code&gt;You can  see the Rescue / SSM enabled Helper Instance has been terminated and Automation have Started the Problematic Unreachable Instance again after fixing the issue:&lt;/code&gt;&lt;/em&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3hzk8_Z4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/tkdlj7sshuwk3xwflswc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3hzk8_Z4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/tkdlj7sshuwk3xwflswc.jpg" alt="18"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now, Let's Try  to connect to the Instance:&lt;/strong&gt;👩‍💻🤔&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UZ5uGFh5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/na1yttk0npylnxeeltfe.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UZ5uGFh5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/na1yttk0npylnxeeltfe.jpg" alt="19"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I am able to SSH and Issue has been fixed now. ✅✅🏁🏁&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;&lt;strong&gt;Interested to know about logs to see what was fixed on Instance to gain access?&lt;/strong&gt;&lt;/b&gt;❓🙋‍♂️
&lt;/h3&gt;

&lt;p&gt;• You can  check the details of  Step ID &lt;strong&gt;“getEC2RescueForLinuxResult”&lt;/strong&gt; which will provide you a location of the log presence on instance.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JuqcBU6n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/fmkeijv6d1mpiatoqcpa.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JuqcBU6n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/fmkeijv6d1mpiatoqcpa.jpg" alt="20"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Please make a note of the location displayed there for example, In my case - The output logs are located in: &lt;strong&gt;/var/tmp/ec2rl/2020-06-25T01_44_08.560197&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--H3O6Uhn5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/35x1yg9rvnmp83sgsdbu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H3O6Uhn5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/35x1yg9rvnmp83sgsdbu.jpg" alt="21"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Now, I will check the &lt;strong&gt;Log location&lt;/strong&gt; on instance and see detailed information as follows:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wVObgCoH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bli4004u8xjjzf1lsxoq.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wVObgCoH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bli4004u8xjjzf1lsxoq.jpg" alt="22"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;b&gt;&lt;u&gt;Hence, I have also identified what fixes have been applied by EC2Rescue for Linux over instance to fix the issue in an automated way.&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  &lt;b&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/b&gt;🎯🧐📚🤖
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-awssupport-executeec2rescue.html"&gt;AWSSupport-ExecuteEC2Rescue&lt;/a&gt;&lt;/strong&gt;  is a new Automation document that automates all  the steps required to fix common issues on your unreachable Windows &amp;amp; Linux instance using respective &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Linux-Server-EC2Rescue.html"&gt;EC2Rescue for Linux&lt;/a&gt;&lt;/strong&gt; &amp;amp;  &lt;strong&gt;&lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Windows-Server-EC2Rescue.html"&gt;EC2Rescue for Windows&lt;/a&gt;&lt;/strong&gt; tool tools, which is a framework for executing diagnostic and troubleshooting modules for analyzing and remediating issues.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;strong&gt;Overall&lt;/strong&gt;, It will save a lot  of time which is being invested with manual process of detach, attach volume and further steps to troubleshoot issues. This document does all  the steps for you in an automated way in just  few  minutes.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Tip&lt;/b&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;With the integration between CloudWatch Events and Systems Manager&lt;br&gt;
Automation, you can  run AWSSupport-ExecuteEC2Rescue automatically in&lt;br&gt;
response to an event in your infrastructure.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/3og0ICG4WxdKSRzE3K/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/3og0ICG4WxdKSRzE3K/giphy.gif" alt="SSH issue Fixed"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;i&gt;&lt;b&gt;Also, I would like to mention that above I've guided you through Console way to get familiar with the workflow. If you're interested in using AWS CLI, please check out my &lt;a href="https://dev.to/dineshrathee12/via-aws-cli-automating-my-post-using-aws-systems-manager-automation-document-to-fix-ssh-issue-on-a-linux-ec2-instance-3inn"&gt;Blog Post&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;




&lt;p&gt;&lt;b&gt;Thanks for reading.&lt;b&gt;&lt;br&gt;
Any feedback, please write it to me here in comments..&lt;br&gt;
&lt;b&gt;Also, 🤝🤗You can connect with me🤝🤗&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://www.linkedin.com/in/%E2%80%8Bdineshrathee12"&gt;LinkedIn&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://dev.to/dineshrathee12"&gt;DevTo&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://github.com/dineshrathee12"&gt;GitHub&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a href="https://twitter.com/dinesh_rathee12"&gt;Twitter&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>linux</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
