Storing Configuration and Secrets in Parameter Store
This lesson explains how Parameter Store provides hierarchical storage for configuration data and secrets, integrated with IAM, KMS and many AWS services.
Learning outcomes
After completing this lesson, you will be able to:
- Choose parameter types and tiers.
- Use public parameters and service integrations.
- Control access, sharing and throughput.
Parameter types and tiers
Parameters are String, StringList (comma-separated) or SecureString, which is encrypted with a KMS key (the AWS managed aws/ssm key or a customer managed key). Names form a hierarchy such as /prod/checkout/db-host, so IAM policies can grant access to a path and GetParametersByPath can read a whole branch. Every change creates a new version, and labels point to specific versions.
The standard tier is free, stores up to 10,000 parameters per account and Region with values up to 4 KB, and has no parameter policies. The advanced tier is charged, allows 100,000 parameters, values up to 8 KB and parameter policies such as expiration, expiration notification and no-change notification. Higher throughput can be enabled for applications that read parameters very frequently.
10,000parameters
Standard tier, per account and Region
4KB
Maximum standard parameter value
100,000parameters
Advanced tier
8KB
Maximum advanced parameter value
Standard or advanced tier?
Public parameters and integrations
AWS publishes public parameters, notably the latest AMI IDs, for example /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64. A launch template or CloudFormation template that references this parameter always uses the current AMI. CloudFormation reads parameters with AWS::SSM::Parameter::Value<String> parameter types or dynamic references ({{resolve:ssm:/path}} and {{resolve:ssm-secure:/path}} for supported properties); ECS task definitions inject parameters as environment variables; Lambda functions can use the Parameters and Secrets extension to cache values.
Parameter Store and Secrets Manager overlap. Parameter Store is cheaper and suits configuration; Secrets Manager adds automatic rotation, cross-Region replication and resource policies for secrets. The encryption and secrets module compares them in detail.
The following diagram shows a parameter that holds the latest AMI ID between an image pipeline and launch templates.

Using parameters
Access, sharing and throughput
Access to parameters is controlled with IAM actions such as ssm:GetParameter, ssm:GetParameters and ssm:GetParametersByPath, scoped to parameter ARNs or paths. Reading a SecureString parameter encrypted with a customer managed KMS key also requires kms:Decrypt on that key, and a missing KMS permission is a frequent cause of AccessDeniedException. A ParameterNotFound error usually means a wrong name, a missing leading slash or a different Region.
Parameters in the advanced tier can be shared with other accounts through AWS RAM; consumers then read them by their full ARN. Applications that read parameters very frequently, for example on every request, can receive ThrottlingException errors at the default throughput. The fixes are to cache values in the application or with the Lambda extension, or to enable higher throughput, which is charged per request.
One AMI parameter for all launch templates
A team builds a golden AMI each month with EC2 Image Builder. The pipeline's distribution settings write the new AMI ID to the parameter /golden/al2023/latest. Launch templates reference resolve:ssm:/golden/al2023/latest as the image ID, so the next instance launched, or the next Auto Scaling instance refresh, uses the new image without editing any template. Previous versions of the parameter record which AMI was in use each month, which simplifies rollback.
aws ssm put-parameter --name /golden/al2023/latest --type String \
--data-type aws:ec2:image --value ami-0123456789abcdef0 --overwrite
aws ssm get-parameter-history --name /golden/al2023/latest \
--query 'Parameters[].{v:Version,ami:Value,date:LastModifiedDate}'Which permission does a reader need in addition to ssm:GetParameter for a SecureString?
Show answer
kms:Decrypt on the key that encrypts the parameter.
Exam Tips
Remember for the exam
- SecureString parameters are encrypted with KMS; readers need kms:Decrypt.
- Standard tier is free (4 KB values); advanced tier adds 8 KB values and parameter policies.
- Public parameters provide the latest AWS AMI IDs.
- Parameter Store has no built-in rotation; use Secrets Manager for rotating secrets.