A SysOps Administrator is using AWS Systems Manager Run Command to execute a configuration script on a fleet of Amazon EC2 instances. The administrator attempts to target the instances using the resource tag key `Environment` with the value `Production`. The administrator verifies that the SSM Agent is installed and running on the instances, and an IAM instance profile containing the `AmazonSSMManagedInstanceCore` policy is attached. However, the Run Command console reports that zero instances are targeted. Upon checking the Systems Manager Fleet Manager console, the administrator notices that none of the target EC2 instances are listed as managed nodes. Which of the following is the most likely cause of this issue?
- AThe target EC2 instances are associated with a patch group tag that does not match the patch group defined in the default Systems Manager patch baseline.
- The target EC2 instances are launched in a private subnet and lack network routing to a NAT gateway or interface VPC endpoints for Systems Manager.Cevap
- CThe administrator's IAM user policy is missing the `iam:PassRole` permission for the IAM instance profile role attached to the instances.
- DThe EventBridge rule configured to trigger the Systems Manager Run Command is using an incorrect target pathway that bypasses the required API endpoints.
Cevap
The target EC2 instances are launched in a private subnet and lack network routing to a NAT gateway or interface VPC endpoints for Systems Manager.
The correct answer identifies that the instances lack a network path to contact AWS Systems Manager endpoints. For the SSM Agent to register an EC2 instance as a managed node, it must communicate with the Systems Manager service. In a private subnet, this requires either a route to a NAT gateway/instance or interface VPC endpoints (PrivateLink) for Systems Manager. If this connectivity is missing, the instances will never show up in Fleet Manager, rendering them untargetable by Run Command.
Adım Adım Çözüm
Anahtar Kavram
AWS Systems Manager Managed Node Registration and Connectivity Requirements