iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🤔

Unable to connect to EC2 instance via SSM

に公開

Issue

The error "The version of SSM Agent on this instance doesn't support shell profile. Update to latest SSM Agent before continuing." is displayed, and you cannot connect to the EC2 instance using Session Manager.

Systems Manager connection failure screen

Cause

The SSM Agent version inside the EC2 instance is outdated.

Solution

  • Search for "Systems Manager" in the AWS console and open it.
  • Open "Node Management" > "Fleet Manager" from the left navigation menu.
  • Select the checkbox for the relevant EC2 instance in Fleet Manager.
  • Select "Auto-update SSM Agent" from the "Account management" menu in the top right.
    Account management menu
  • Click "Auto-update SSM Agent".
    Auto-update agent popup
  • The SSM Agent is updated quickly, and you will be able to access the instance via SSM.
    • From now on, the SSM Agent will be updated automatically.

References

Discussion