AWS cli: How to add/update settings in the AWS Parameter Store
2 min read | by Jordi Prats
AWS Systems Manager (SSM) Parameter Store is a service that helps you centralize and manage these configurations, secrets, and parameters without hardcoding sensitive information in your application code.
We can create or update parameters in the AWS Parameter Store using the AWS CLI.
We can store three types of parameters in the Parameter Store:
- String: Standard text-based parameters.
- StringList: A comma-separated list of strings.
- SecureString: Encrypted strings, which are useful for secrets like passwords or API keys.
The command options for put-parameter
are:
- --name: The full name of the parameter that we are going to use to retrieve it's value.
- --value: The actual value of the parameter.
- --type: As previously discussed, the parameter type you want to use (String, StringList, or SecureString).
- --overwrite: If the parameter already exists, this flag allows you to overwrite the existing value.
aws ssm put-parameter --name "/Demo/parameter" --value "example" --type "String"
Posted on 18/09/2024