AWS Systems Manager
User Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

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 running a command that uses this parameter.

To create a parameter using Parameter Store

  1. Open the AWS Systems Manager console at

  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 a managed instance in your account.

  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 button next to an instance ID, and then choose View output.