내용으로 건너뛰기

Unable to connect EC2 instance via Session Manager

0

I am at the point of recertification of my cloud architect certificate via https://cloudquest.skillbuilder.aws/callback. Connecting-vpc/MarketingServer via SessionManager has not been possible. Each time I clicked connect on SessionManager window, an error message (Network Failure) will popup. I ha[[]()]()ve been on this spot for the last three days. All efforts to restart/refresh have not yielded any positive result. Network Failure

질문됨 5달 전120회 조회
2개 답변
0

To resolve your issue with connecting to an EC2 instance via Session Manager, I'll provide several troubleshooting steps:

  1. IAM Role Permissions:
  • Verify that the EC2 instance has an IAM role attached with the necessary permissions
  • The role should include the AmazonSSMManagedInstanceCore managed policy or equivalent permissions
  • This policy grants the required permissions for Systems Manager functionality
  1. Instance Configuration:
  • Ensure the SSM agent is installed and running on your EC2 instance
  • Check the SSM agent logs at /var/log/amazon/ssm/amazon-ssm-agent.log for any errors
  1. Network Configuration:
  • Check the security group associated with your EC2 instance
  • Ensure it allows inbound and outbound traffic on port 443 (HTTPS) for Session Manager connections
  • Verify that the subnet where your EC2 instance resides has proper routing to communicate with Systems Manager endpoints
  • If the instance is in a private subnet, it might require a NAT gateway for outbound internet access
  1. VPC Endpoints:
  • If you're using VPC endpoints, ensure they're configured correctly to allow traffic to and from Systems Manager endpoints
  1. Instance Status:
  • Confirm your EC2 instance is in the "running" state and reachable over the network
  1. Session Manager Configuration:
  • Verify that Session Manager is enabled in your AWS account and configured correctly
  • Check the Session Manager settings in the AWS Systems Manager console
  1. Network ACLs:
  • If you're using network ACLs, ensure they allow the necessary traffic for Session Manager

If these steps don't resolve the issue, you might want to try rebooting the instance or using an alternative connection method temporarily while troubleshooting the Session Manager connection.
Sources
Unable to Connect to EC2 Instance via SSM Session Manager | AWS re:Post
Can't connect to Linux instance even after the health status checks pass | AWS re:Post

답변함 5달 전
전문가
검토됨 5달 전
0

Also check your local firewall on your Machine incase its blocking traffic to AWS SSM public Endpoint

전문가
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠