Edit Template

How to fix AWS SSM connectivity issues?

Lately I encountered a weird issue where one of my newly launched EC2 instance was not showing any other option than RDP to connect to. After spending some time in checking security groups and other network related settings I decided to check the SSM diagnostic logs. But before I share how I managed to find the problem, let me first share with you all the possible symptoms of SSM related issues.

Possible SSM related issues:

  1. Connection through Session Manager unavailable
  2. Connection through Fleet Manager unavailable
  3. Status of EC2 instance showing as ‘Connection lost’ under Managed nodes.
  4. Can’t use run command

If you happen to encounter any of the above issues then look into the SSM diagnstic logs for possible issues.

To, check the AWS SSM diagnostic logs follow the below steps:

On Windows machines:

  1. Open Pwershell and go to C:\Program Files\Amazon\SSM directory
  2. Now, run the below command
    .\ssm-cli.exe get-diagnostics --output table

This command should show a table similar to the below one.

Now, in this table look for any ‘failed’ status and then take necessary actions to fix the problem.

For Linux and macOS:

  1. Run the below command and it should also return a similar table as mentioned above.

ssm-cli get-diagnostics --output table

My Issue and and it’s resolution– In my case the issue was with DNS settings on the EC2 instance, once I fixed that the EC2 machine became available in System Manager.

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Recent Posts

  • All Post
  • AI
  • AWS
  • Azure
  • Bash
  • Blog
  • Certification Prep Guide
  • DynamoDB
  • How To
  • kubernetes
  • Linux
  • Roadmap
  • Shell
  • Terraform
  • Terragrunt

Category

content created for you!

Company

About Us

FAQs

Contact Us

Terms & Conditions

Features

Copyright Notice

Mailing List

Social Media Links

Help Center

Products

Sitemap

New Releases

Best Sellers

Newsletter

Help

Copyright

Mailing List

© 2023 DevOps Horizon