Menu
AWS Systems Manager
User Guide

Walkthrough: Create and Use a Parameter in a Command (Console)

The following procedure walks you through the process of creating a parameter in Parameter Store and then executing a command that uses this parameter.

To create a parameter using Parameter Store

  1. Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/.

    -or-

    Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

    Note

    If you are using the Amazon EC2 console, some field names and locations may differ slightly.

  2. In the navigation pane, choose Parameter Store.

  3. Choose Create parameter.

  4. In the Name box, enter a hierarchy and a name. For example, enter /Test/helloWorld.

    For more information about parameter hierarchies, see Organizing Parameters into Hierarchies.

  5. In the Description field, enter a description that identifies this parameter as a test parameter.

  6. For Type, choose String.

  7. In the Value field, enter a string. For example, enter My1stParameter.

  8. Choose Create parameter.

  9. In the navigation pane, choose Run Command.

  10. Choose Run command.

  11. In the Command document list, choose AWS-RunPowershellScript (Windows) or AWS-RunShellScript (Linux).

  12. Under Target instances, choose an instance you created earlier.

  13. In the Commands field, enter echo {{ssm:parameter name}}, for example, echo {{ssm:/Test/helloWorld}}.

  14. Choose Run.

  15. Scroll to the bottom of the Command ID page, select the radio button next to an instance ID, and then choose View output.