AWS · Comparison

Secrets Manager vs Parameter Store

Where should applications keep passwords, API keys and configuration: Secrets Manager or Systems Manager Parameter Store?

Decision summary

Secrets Manager is built for secrets: automatic rotation (managed for RDS, Aurora, Redshift and DocumentDB, or with Lambda), cross-account resource policies and replication to other Regions, for a monthly fee per secret. Parameter Store (part of Systems Manager) holds configuration values and secrets as SecureString parameters encrypted with KMS; standard parameters have no storage charge, but there is no built-in rotation.

Use Secrets Manager for credentials that must rotate; use Parameter Store for configuration and secrets that rarely change.

Best fit for each option

Secrets Manager

Database credentials and API keys that must rotate automatically, be shared across accounts, or be replicated across Regions.

Parameter Store

Configuration values, feature flags, and static secrets as SecureString, organised in a hierarchy.

Side by side

 Secrets ManagerParameter Store
Best forSecrets with rotation and sharingConfiguration and simple secrets
SecurityKMS encryption, resource policies, rotationSecureString with KMS, IAM per path
CostPer secret per month plus API callsStandard parameters at no storage charge; advanced parameters and higher throughput are billed
Operational complexityManaged rotation for supported databasesNo built-in rotation; you update values

Scaling and topology

Applicationreads at runtimeSecrets Managerdb/prod/passwordGetSecretValueRotation Lambdaevery 30 daysRDS databasepassword changedtriggersALTER USER …new version
Secrets Manager stores credentials and rotates them on a schedule with a rotation function

Limits and constraints

ItemValueContextSource
Secrets Manager maximum secret size 65,536 bytes
Fixed limit
Source
checked

Quotas and limits change. Check the linked source before designing around a number.

When to avoid each option

Secrets Manager

  • Plain configuration values.
  • Very many rarely used secrets where per-secret fees add up.

Parameter Store

  • Credentials that must rotate automatically.
  • Values larger than parameter size limits.

Example scenarios

SituationChooseWhy
An RDS password must rotate every 30 days.Secrets ManagerManaged rotation for RDS.
Feature flags and endpoint URLs for many services.Parameter StoreCheap, hierarchical configuration.
A third-party API key that changes once a year.Parameter StoreA SecureString is enough and costs less.

Exam cues

  • Automatic rotation of database credentials: Secrets Manager.
  • Cheap configuration storage, hierarchical, SecureString: Parameter Store.

Service pages

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake