Back to IAM & Security

AWS Secrets Manager

aws

Centralized secret management service with automated credential rotation and fine-grained access control.

IAM & SECURITY
Amazon Web Services

Centralized secret management service with automated credential rotation and fine-grained access control.

Click any section above to jump directly to it
GCP ➔ AWS Bridge
Fast-Track Mental Model Translation

Coming from Google Cloud?

Compare with Google Cloud Secret Manager

Both securely store and version API keys and database credentials, but AWS Secrets Manager features built-in automated Lambda rotation workflows for RDS and Aurora.

What's Conceptually Identical
  • Centralized encrypted storage for passwords, API tokens, and certificates.
  • Automatic versioning and IAM access controls.
  • Audit logging via CloudTrail / Cloud Audit Logs.
Key Architectural Shifts in AWS
  • Automated Rotation: AWS Secrets Manager includes pre-built Lambda rotation templates for RDS, Aurora, and Redshift; GCP requires custom Cloud Functions.
  • Pricing: AWS charges $0.40 per secret per month + $0.05 per 10,000 API calls; GCP charges $0.06 per secret version per month + $0.03 per 10,000 calls.
Syntax & Command Translator
Retrieve Secret
GCP:gcloud secrets versions access latest --secret=db-pass
AWS:aws secretsmanager get-secret-value --secret-id prod/db-pass

What is AWS Secrets Manager?

AWS Secrets Manager helps you protect secrets needed to access your applications, services, and IT resources. The service enables you to easily rotate, manage, and retrieve database credentials, API keys, and other secrets throughout their lifecycle. Users and applications retrieve secrets with a call to Secrets Manager APIs, eliminating the need to hardcode sensitive information in plain text.

Decision Guide: When to Choose This Service

When to Use AWS Secrets Manager

Use AWS Secrets Manager to store database credentials, API keys, and OAuth tokens with automated Lambda rotation schedules and native Amazon RDS/Aurora integration.

When NOT to Use (Recommended Alternatives)

Do NOT use Secrets Manager for non-sensitive configuration parameters (like URLs or feature flags); use AWS Systems Manager Parameter Store Standard Tier for free string storage.

Core Architectural Pillars

Automated Rotation

Built-in Lambda functions rotate credentials on fixed schedules (e.g. every 30 days) with zero application downtime.

Staging Labels

Multi-version secret staging (`AWSCURRENT`, `AWSPENDING`, `AWSPREVIOUS`) preventing race conditions during rotation.

KMS Envelope Encryption

Secrets are encrypted at rest with Customer Managed Keys or AWS Managed Keys.

Fine-Grained IAM Control

Restrict secret retrieval based on IAM policies, resource tags, and VPC endpoints.

Client-Side Caching

Local caching libraries minimize API request charges and latency.