Menu
Amazon Elastic Compute Cloud
User Guide for Linux Instances

Creating Your Own Command

Run Command uses SSM documents. An SSM document is a JSON file that describes the actions you want to perform on your instances with Run Command. You can either use the pre-defined SSM documents (any document that begins with "AWS-*", for example AWS-RunShellScript) or you can create your own SSM documents. We recommend that you create low-level task documents, for example, a document where a user can restart a service, and assign these documents to non-administrator users. All "AWS-*" documents, especially the AWS-RunShellScript document, and any higher-level administrator documents should be assigned to trusted administrators only. For more information about creating SSM documents, see SSM Documents in the Amazon EC2 Simple Systems Manager API Reference. For more information about delegating access to SSM documents, see Delegating Access to SSM Run Command.