There are multiple document types for different Systems Manager capabilities. They can be reviewed here:
Systems Manager Documents
You can use pre-defined AWS managed documents or create your own depending on your use case.
In this lab we will create a custom document that can be used with other Systems Manager capabilities Run Command and State Manager.
- Open the AWS Systems Manager console at https://us-east-1.console.aws.amazon.com/systems-manager.
- In the navigation pane, select Documents under the Shared Resources section.
- Inside here you will be able to see all documents available to your account for the given AWS Region. There are four different tabs:
- Owned by Amazon: Managed Documents published and maintained by AWS.
- Owned by me: Custom Documents your organization has created.
- Shared with me: Documents that you have been granted access to for the given AWS Region.
- All documents: Display all documents available to your account for the given AWS Region.
- Select Create Command or session
- For Name, enter
- For Target type - optional, leave the value blank for now.
- Target Type allows you to restrict the types of resources the document can run against.
- For Document type - optional, leave Command document as we will use Run command to install the package.
- For Content, copy and paste the below snippet:
"description": "Command Document Example JSON Template",
"description": "Preparing Web Instance",
"sudo yum install httpd -y",
"sudo systemctl start httpd"
- Choose Create Document to save the document.
- Choose the Owned by me tab and select the new document you created,
- Choose the Content tab and review the contents of the document. We will run this document on our managed instances using Run Command.