Pending AWS-QuickSetup-SSMHostMgmt-CollectInventory-xwfso

0

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:

AWS-QuickSetup-SSMHostMgmt-CollectInventory-xwfso

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
0

Hello.

Is the IAM policy "AmazonSSMManagedInstanceCore" set in the EC2 IAM role?
If it has not been set, please set it in the IAM role.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-instance-profile.html

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.
https://docs.aws.amazon.com/systems-manager/latest/userguide/setup-create-vpc.html

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

profile picture
EXPERT
answered 9 months ago
0

Hi,

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:

/var/log/amazon/ssm/

And Windows:

%PROGRAMDATA%\Amazon\SSM\Logs\

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

Thanks,

Jason

AWS
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