A SysOps Administrator needs to execute a custom bash script on several on-premises servers using AWS Systems Manager Run Command. The on-premises servers are not yet registered with AWS. An IAM service role for Systems Manager hybrid activation has already been created.
What is the correct sequence of steps to register these on-premises servers and execute the script?
- 1Create a hybrid activation in the AWS Systems Manager console or via the AWS CLI to generate an Activation ID and Activation Code.
- 2Install the SSM Agent on the physical servers and run the registration command using the Activation ID, Activation Code, and target Region.
- 3Verify that the registered servers are listed as managed nodes (with the mi- prefix) in the Systems Manager console.
- 4Execute the script using Run Command by selecting the AWS-RunShellScript document and targeting the managed nodes.
Cevap
First, create a hybrid activation to get the Activation ID and Activation Code. Second, install the SSM Agent on the on-premises servers and register them using the activation details. Third, verify that the servers appear as managed nodes in the Systems Manager console. Fourth, execute the command using AWS-RunShellScript targeting the managed nodes.
The registration process must begin with creating the activation credentials, then applying them locally to the hybrid servers. Only after confirming they are registered as managed nodes can commands be executed on them.
Adım Adım Çözüm
Anahtar Kavram
AWS Systems Manager hybrid activations and Run Command execution sequence