ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

Service · Security, Identity, and Compliance · CLF-C02 အပေါ် ဆက်လေ့လာရန်

AWS Secrets Manager

Rotate and share secrets across accounts and Regions, and choose it or Parameter Store.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Cloud Practitioner မှ သင်သိပြီးသားများ

  • 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.
Cloud Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • 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
Secrets Manager compared with Parameter Store.

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

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
Secrets Manager compared with Parameter Store.
EC2
Secrets Manager
RDSLambda
  1. 1The application fetches the secret at run time, using its role.
  2. 2On the schedule, Secrets Manager starts the rotation function.
  3. 3The function sets a new password in the database and in the secret.
Automatic rotation of a database password.

ဘာလဲ

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.