SSM Parameter Store
AWS Systems Manager Parameter Store for configuration and secrets, SecureString encryption with KMS, parameter hierarchies, standard and advanced tiers, and parameter policies.
What it is
SSM Parameter Store is secure storage for configuration and secrets, part of Systems Manager.
- Optional, seamless encryption with KMS (
SecureStringparameters). - Serverless, scalable, durable, with a simple SDK.
- Version tracking of configurations and secrets (the 100 most recent versions).
- Security through IAM: an application can read only the parameters its role allows, and needs KMS permission to decrypt a
SecureString. - Notifications with EventBridge.
- Integration with CloudFormation (templates can read parameter values).
Parameter hierarchy
- Store parameters in a path hierarchy:
/my-department/my-app/dev/db-url,/my-department/my-app/prod/db-password… - Read one with
GetParameters, or a whole branch withGetParametersByPath. - IAM policies can allow a path (
/my-department/my-app/dev/*), so dev code can't read prod secrets. - Special paths:
/aws/reference/secretsmanager/<secret_ID>reads a Secrets Manager secret through Parameter Store;- public parameters published by AWS, such as
/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64for the latest Amazon Linux AMI ID.
Standard and advanced tiers
Standard:
- up to 10,000 parameters per account and Region;
- values up to 4 KB;
- no parameter policies;
- free (no storage charge).
Advanced:
- up to 100,000 parameters;
- values up to 8 KB;
- parameter policies available;
- $0.05 per advanced parameter per month.
A parameter can be upgraded from standard to advanced, but not back.
Parameter policies (advanced parameters)
- Assign a TTL to a parameter (an expiration date), to force updating or deleting sensitive data such as passwords.
- Multiple policies can be assigned at a time:
- Expiration: deletes the parameter at a set date and time;
- ExpirationNotification: sends an EventBridge event before expiry (for example 15 days before);
- NoChangeNotification: sends an EventBridge event if the parameter hasn't changed for a while (for example 20 days).
{ "Type": "ExpirationNotification", "Version": "1.0",
"Attributes": { "Before": "15", "Unit": "Days" } }Real-world examples
- A Lambda function reads its database URL from
/shop/orders/prod/db-urlat start-up; the same code reads/shop/orders/dev/…in dev, picked by an environment variable. - A launch template uses the public parameter for the latest Amazon Linux AMI, so new instances always get the current image.
Exam tips
- "Store configuration and secrets centrally, encrypted, cheaply" → Parameter Store (
SecureString). - "Organise config per environment" → parameter hierarchy +
GetParametersByPath+ IAM by path. - "Latest AMI ID" → Parameter Store public parameters.
- "Values over 4 KB" or "expiry notifications" → advanced tier.
Common traps
- "Parameter Store rotates database passwords automatically." That's Secrets Manager.
- "Parameter policies work on standard parameters." Advanced tier only.
Hands-on lab: a SecureString parameter
Goal: store an encrypted parameter and read it back.
Costs money
Standard parameters are free, and SecureString uses the free AWS managed key aws/ssm. Any Region works.
Create parameters
In CloudShell:
aws ssm put-parameter --name /saa/app/dev/db-url --type String --value "dev-db.example.com"
aws ssm put-parameter --name /saa/app/dev/db-password --type SecureString --value "S3cret!"Read them
aws ssm get-parameters-by-path --path /saa/app/dev
aws ssm get-parameters-by-path --path /saa/app/dev --with-decryptionExpected result: the first call shows the password encrypted; the second shows it decrypted.
Clean up: aws ssm delete-parameters --names /saa/app/dev/db-url /saa/app/dev/db-password
AWS documentation
AWS CloudHSM
AWS CloudHSM for dedicated, single-tenant hardware security modules, who manages what, high availability across AZs, integration with KMS custom key stores, and CloudHSM vs KMS.
AWS Secrets Manager
AWS Secrets Manager for storing and rotating secrets, managed rotation and Lambda rotation, integration with RDS and Aurora, multi-Region secrets, and Secrets Manager vs Parameter Store.