aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.04k stars 322 forks source link

SSM agent Windows takes around 30mn to register to the AWS System manager for custom AMI's #380

Closed taherbs closed 3 years ago

taherbs commented 3 years ago

Hi, When creating a new Windows EC2 instance based on a custom AMI, it takes around 30mn for the machine to show up in the AWS system manager. Is there a way to speed things up? like a running script that fasts forward SSM agent registration. Thank you,

taherbs commented 3 years ago

I have found the issue, the instance was based on a custom image that I have created from another image in a different VPC, so during the custom IAM creation the routing tables were set with the wrong paths/gateways, the 30mn delay was the time for the routing table to get updated properly with the new config.