Why do I receive a "No Invocations to Execute" message from my Systems Manager maintenance window?
"I created a maintenance window that runs an AWS Systems Manager Automation targeting Amazon Elastic Compute Cloud (Amazon EC2) instance tags. When the automation runs, I receive a "No Invocations to Execute" message."
"I created a maintenance window that runs an AWS Systems Manager Automation targeting Amazon Elastic Compute Cloud (Amazon EC2) instance tags. When the automation runs, I receive a "No Invocations to Execute" message.Short descriptionWhen you run a maintenance window that targets instances that use Amazon EC2 instance tags, the instance IDs for managed instances resolve when the Automation runs. The instance ID won't resolve as a target if either of the following is true:The target instance isn't reporting as a managed instance when the Automation runsThe target instance is stopped when the maintenance window runsWhen an instance ID can't resolve as a target, then the "No Invocations to Execute" message appears in the output.ResolutionTo target a non-managed instance or an instance that is stopped when the maintenance window runs, follow these steps:Create a new resource group that is limited to Amazon EC2 instances, and then specify your tags. For more information and for instructions to create a tag-based group, see Creating query-based groups in AWS Resource Groups.Update the AWS Identity and Access Management (IAM) policies attached to the Automation role to include read-only access for the resource group.Register the target to a maintenance window. For Targets, choose the tag-based resource group that you created in step 1 of this article.Update the maintenance window Automation task to target the resource group target that you created in the previous step.For the Automation task InstanceId input parameter, enter the pseudo parameter {{RESOURCE_ID}}.Related informationWhy is my EC2 instance not displaying as a managed node or showing a "Connection lost" status in Systems Manager?AWS Resource Groups identity-based policy examplesWhy do I receive a "No Instances in Tag" message from my Systems Manager maintenance window?Follow"