Pending AWS-QuickSetup-SSMHostMgmt-CollectInventory-xwfso


I'm having trouble connecting to any of my EC2 instances and there isn't a clear reason. I've gone through all the troubleshooting docs. My instance isn't considered "Managed" when I try to run console commands against it. The only reason I can think of why is that my SystemsManager has the following HostManagement task still pending:


It has been hanging on this one for a while now. Is there something wrong with my setup or is this a bug?

asked 9 months ago310 views
2 Answers


Is the IAM policy "AmazonSSMManagedInstanceCore" set in the EC2 IAM role?
If it has not been set, please set it in the IAM role.

Also, is your EC2 launched in a public subnet?
If you are not running in a public subnet, you will need to set up NAT GateWay or VPC endpoints to communicate with Systems Manager.

If the above settings are completed, EC2 should be registered as a managed instance in Systems Manager.

profile picture
answered 9 months ago


If you check the SSM Agent log, it should give you more insight into what's happening. Make sure that the SSM agent service is running on your instances.

The logs will be located here for Linux:


And Windows:


More information on SSM Agent logging is available here - Viewing SSM Agent logs



Jason D
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions