SSM Agent is not online The SSM Agent was unable to connect to a Systems Manager endpoint to register itself with the service.
I created new ec2 but this is the error I'm getting while accessing the ec2 via session manager.
Ec2 should be connecting through session manager
SSM Agent is not online The SSM Agent was unable to connect to a Systems Manager endpoint to register itself with the service.
I created new ec2 but this is the error I'm getting while accessing the ec2 via session manager.
Ec2 should be connecting through session manager
Share Improve this question asked Jan 31 at 9:48 Kishor JoshiKishor Joshi 161 bronze badge 2- Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – PatPanda Commented Feb 1 at 12:10
- @Kishor - I've provided an answer below. If it helped resolve your issue, please consider upvoting and accepting it so others can benefit too. – Ankush Jain Commented Feb 4 at 14:13
1 Answer
Reset to default 0SSM Agent needs permission to connect with Systems Manager service. Make sure you do the following things.
- Attach an IAM role (instance profile) to EC2
- Attach
AmazonSSMManagedInstanceCore
managed policy to that IAM Role.
This AmazonSSMManagedInstanceCore
managed policy grants instances the permissions needed for core Systems Manager functionality.