Storing Configuration with Systems Manager Parameter Store
This lesson explains how Parameter Store keeps configuration values and simple secrets in a hierarchy at little or no cost, as the usual place for application settings that differ between environments.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish the standard and advanced tiers.
- Explain how public parameters provide values such as the latest AMI IDs.
- Choose between Secrets Manager and Parameter Store.
Parameters and tiers
Parameter Store, part of Systems Manager, stores configuration values and simple secrets, and offers two tiers. The standard tier is free and holds up to 10,000 parameters per account and Region, each up to 4 KB, which covers most configuration needs. The advanced tier is charged per parameter per month and allows larger values of up to 8 KB, up to 100,000 parameters, and parameter policies, such as an expiry date after which the parameter is deleted, or a notification when a value has not changed for a set time. The following table summarises the two tiers.
Types are String, StringList and SecureString, which is encrypted with KMS. Hierarchical names such as /app/prod/db-url let an application read a whole environment's configuration with GetParametersByPath and let IAM policies grant access by path.
4KB
Maximum standard parameter value
8KB
Maximum advanced parameter value
10,000
Standard parameters per account and Region
100,000
Advanced parameters per account and Region
Public parameters
AWS publishes values such as the latest Amazon Linux AMI ID as public parameters, which launch templates and CloudFormation can reference so that new instances always use the current AMI.
Secrets Manager or Parameter Store?
Secrets Manager and Parameter Store can both hold encrypted values, so the choice depends on what else is required. Secrets Manager is built for credentials. It rotates them automatically and replicates them to other Regions, and it is charged per secret. When a scenario mentions automatic rotation of database credentials, or secrets shared across Regions, Secrets Manager is the answer.
Parameter Store is built for configuration and simple secrets. Its SecureString parameters are encrypted with KMS, but there is no built-in rotation or replication, and the standard tier is free. When a scenario asks for the cheapest way to store configuration values or a secret that rarely changes, Parameter Store is the answer. The following table summarises the differences.
Secrets Manager or Parameter Store?
Storing an application's configuration
An application uses several configuration values with different requirements. The following table identifies the appropriate store for each value and the reason for the choice.
| Value | Store | Reason |
|---|---|---|
| Aurora master password, rotated every 30 days | Secrets Manager | Built-in rotation |
| Payment provider API key, rotated manually | Parameter Store SecureString | Encrypted, cheaper, no rotation needed |
| Feature setting such as maximum basket size | Parameter Store String | Free plain configuration |
| Password needed in a DR Region | Secrets Manager with replication | Replica secrets |
The rotation requirement is usually the deciding factor in exam questions: "automatically rotate" means Secrets Manager. Applications read values at runtime rather than storing them in code or AMIs.
Which Parameter Store tier is needed for parameter policies, such as an expiry date?
Show answer
The advanced tier, which also allows values up to 8 KB and more parameters, at a charge per parameter.
Exam Tips
Remember for the exam
- For free storage of configuration and simple secrets, use Parameter Store.
- To read all of an environment's settings at once, use hierarchical names and
GetParametersByPath. - To always launch the latest Amazon Linux AMI, reference the public parameter for its ID.
- Parameter Store has no automatic rotation; database credentials that must rotate belong in Secrets Manager.