A SysOps Administrator needs to distribute and execute a custom administrative task across multiple AWS accounts using AWS Systems Manager Run Command. The task requires a custom command document. The administrator has already configured the necessary IAM roles. What is the correct sequence of steps to deploy and run this custom task?
- 1Draft the document content in YAML or JSON format, defining the parameters and execution steps.
- 2Create the custom SSM Command document in the primary AWS account.
- 3Modify the permissions of the custom document to share it with the target AWS accounts.
- 4Invoke Systems Manager Run Command in the target accounts, referencing the shared document.
Cevap
The correct sequence of steps is: draft the document content in YAML or JSON format, create the custom SSM Command document in the primary AWS account, modify the permissions of the custom document to share it with the target AWS accounts, and invoke Systems Manager Run Command in the target accounts referencing the shared document.
The correct order follows the natural lifecycle of a custom Systems Manager document. First, the administrator must draft the document schema (YAML or JSON). Second, the administrator creates the document in the primary AWS account. Third, the administrator shares the document with the other AWS accounts. Finally, the administrators in the target accounts execute the shared document using Run Command.
Adım Adım Çözüm
Anahtar Kavram
Systems Manager Document lifecycle: authoring, creating, sharing, and cross-account execution.