Soru

Zorluk: KolayAWS Systems Manager Configuration and Run Command Automation

A SysOps Administrator needs to execute a script on a newly launched Amazon EC2 instance using AWS Systems Manager Run Command. Arrange the following steps in the correct sequential order to configure the instance and run the script.

  1. 1Attach an IAM instance profile containing the AmazonSSMManagedInstanceCore policy to the EC2 instance.
  2. 2Verify that the EC2 instance appears under Managed Nodes in the Systems Manager console.
  3. 3Navigate to the Systems Manager console, select Run Command, and choose the AWS-RunShellScript document.
  4. 4Specify the target instance and enter the shell command parameters.
  5. 5Click Run to execute the command, then monitor the output and execution status in the console.

Cevap

The correct sequence is: Attach the IAM instance profile to the EC2 instance, verify the instance appears under Managed Nodes, navigate to Run Command to choose the AWS-RunShellScript document, specify the targets and parameters, and then execute the command while monitoring the output.
The correct sequence begins with setting up permissions (attaching the IAM role) so that the instance can register with the Systems Manager service. Once verified in the Managed Nodes list, you select the Run Command interface and choose the execution document (AWS-RunShellScript). You then configure the targets and parameters, and finally execute the script and observe the logs.

Adım Adım Çözüm

1
Attach an IAM instance profile with AmazonSSMManagedInstanceCore to the EC2 instance.
The EC2 instance is authorized to interact with Systems Manager APIs.
SSM Agent requires these permissions to authenticate and register the instance.
2
Verify the instance is listed as a Managed Node in the console.
Confirms the instance has successfully established communication with AWS Systems Manager.
An instance must be online and managed before commands can be targeted to it.
3
Open Run Command and select the AWS-RunShellScript document.
The console loads the interface for shell script execution.
SSM documents define the actions and capabilities for the Systems Manager execution.
4
Select the target instance and input the script parameters.
Specifies the payload and destination node configuration.
Run Command must map the script payload to the appropriate managed node target.
5
Execute the command and review the console logs.
Runs the script on the target instance and returns execution metrics.
Allows checking the output and verifying if the script executed successfully.

Anahtar Kavram

Configuring EC2 instances for Systems Manager management and executing commands via Run Command.
Bu soruyu puanla