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 Manager | Parameter Store | |
|---|---|---|
| Best for | Secrets with rotation and sharing | Configuration and simple secrets |
| Security | KMS encryption, resource policies, rotation | SecureString with KMS, IAM per path |
| Cost | Per secret per month plus API calls | Standard parameters at no storage charge; advanced parameters and higher throughput are billed |
| Operational complexity | Managed rotation for supported databases | No built-in rotation; you update values |
Scaling and topology
Limits and constraints
| Item | Value | Context | Source |
|---|---|---|---|
| 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
| Situation | Choose | Why |
|---|---|---|
| An RDS password must rotate every 30 days. | Secrets Manager | Managed rotation for RDS. |
| Feature flags and endpoint URLs for many services. | Parameter Store | Cheap, hierarchical configuration. |
| A third-party API key that changes once a year. | Parameter Store | A SecureString is enough and costs less. |
Exam cues
- Automatic rotation of database credentials: Secrets Manager.
- Cheap configuration storage, hierarchical, SecureString: Parameter Store.
Service pages
- AWS Secrets Manager · Store, retrieve and automatically rotate secrets such as database passwords and API keys, encrypted with KMS.
- AWS Systems Manager · Operations hub for fleets of EC2 and on-premises servers: patching, remote sessions, run commands, automation, inventory and parameters.
Related
Courses and lessons
- Secrets Manager vs Systems Manager Parameter Store · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- AWS Secrets Manager · Service
- AWS Systems Manager · Service
- AWS Key Management Service (AWS KMS) · Service
- Amazon RDS · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services.