服务 · Security, Identity, and Compliance · 基于 CLF-C02
AWS Secrets Manager
Rotate and share secrets across accounts and Regions, and choose it or Parameter Store.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- AWS Secrets Manager stores secrets and rotates them automatically.
- Secrets are encrypted with KMS, and access is controlled by IAM.
- Secrets belong in Secrets Manager, not in code.
Main use
- Secrets Manager
- Secrets and credentials
- Parameter Store
- Configuration and simple secrets
Rotation
- Secrets Manager
- Built in
- Parameter Store
- None built in
Cost
- Secrets Manager
- Per secret and per call
- Parameter Store
- Standard tier free
Value size
- Secrets Manager
- Up to 64 KB
- Parameter Store
- 4 KB standard, 8 KB advanced
Cross-Region copy
- Secrets Manager
- Yes
- Parameter Store
- No
| Feature | Secrets Manager | Parameter Store |
|---|---|---|
| Main use | Secrets and credentials | Configuration and simple secrets |
| Rotation | Built in | None built in |
| Cost | Per secret and per call | Standard tier free |
| Value size | Up to 64 KB | 4 KB standard, 8 KB advanced |
| Cross-Region copy | Yes | No |
1 / 2
Main use
- Secrets Manager
- Secrets and credentials
- Parameter Store
- Configuration and simple secrets
Rotation
- Secrets Manager
- Built in
- Parameter Store
- None built in
Cost
- Secrets Manager
- Per secret and per call
- Parameter Store
- Standard tier free
| Feature | Secrets Manager | Parameter Store |
|---|---|---|
| Main use | Secrets and credentials | Configuration and simple secrets |
| Rotation | Built in | None built in |
| Cost | Per secret and per call | Standard tier free |
2 / 2
Value size
- Secrets Manager
- Up to 64 KB
- Parameter Store
- 4 KB standard, 8 KB advanced
Cross-Region copy
- Secrets Manager
- Yes
- Parameter Store
- No
| Feature | Secrets Manager | Parameter Store |
|---|---|---|
| Value size | Up to 64 KB | 4 KB standard, 8 KB advanced |
| Cross-Region copy | Yes | No |
是什么
Rotation runs an AWS Lambda function on a schedule. For Amazon RDS, Amazon Aurora, Amazon Redshift and Amazon DocumentDB, AWS provides the rotation function. For other secrets, you write the function. A secret can be replicated to other Regions, and the replicas can be promoted in a disaster recovery event.
To share a secret with another account, add a resource policy to the secret and use a customer managed KMS key. The default AWS managed key cannot be shared with another account.
是什么
Parameter Store, in AWS Systems Manager, stores configuration values and encrypted SecureString values. Its standard tier is free, but it has no built-in rotation. Choose Secrets Manager when you need rotation, cross-Region replication or database credentials. Choose Parameter Store for configuration and for secrets that do not rotate, at the lowest cost.
Never put credentials in source code, AMIs or EC2 user data. Give the instance a role and let it fetch the secret at run time.
要记住
- Rotation uses Lambda. It is built in for RDS, Aurora, Redshift and DocumentDB.
- Multi-Region replication for disaster recovery.
- Cross-account: resource policy plus a customer managed KMS key.
- Parameter Store standard parameters are free. Secrets Manager charges per secret.
- No credentials in code, AMIs or user data.
要记住
- The instance role fetches the secret at run time.
考试中
- “Rotate the RDS password every 30 days with no code change” points to Secrets Manager.
- “Store configuration values and a few secrets at the lowest cost” points to Parameter Store.
- “Another account needs a secret” points to a resource policy and a customer managed KMS key.
别和这些弄混
AWS Systems ManagerSecure server access and fleet operations with no inbound ports and no bastion hosts.
AWS Key Management Service (AWS KMS)Who may use a key, which key type, how keys rotate and delete, and where KMS limits you.
- Securing databasesEncrypt, authenticate and isolate RDS, Aurora, DynamoDB and ElastiCache.