aws-secretsmanager
Store and manage secrets securely
TLDR
Create a new secret
SYNOPSIS
aws secretsmanager subcommand [options]
DESCRIPTION
aws secretsmanager is the AWS CLI interface for Amazon Secrets Manager, a service for securely storing, managing, and retrieving secrets such as database credentials, API keys, and other sensitive information.
Secrets Manager enables automatic rotation of secrets, fine-grained access control through IAM policies, and audit logging via CloudTrail. It supports replication across regions for disaster recovery.
SUBCOMMANDS
Secret Management
create-secret, delete-secret, describe-secret, get-secret-value, put-secret-value, update-secret, restore-secretListing
list-secrets, list-secret-version-idsRotation
rotate-secret, cancel-rotate-secretReplication
replicate-secret-to-regions, remove-regions-from-replication, stop-replication-to-replicaAccess Control
get-resource-policy, put-resource-policy, delete-resource-policy, validate-resource-policyTagging
tag-resource, untag-resourceUtilities
get-random-password, batch-get-secret-value, update-secret-version-stage
CAVEATS
Deleted secrets enter a recovery window (default 30 days) before permanent deletion; use --force-delete-without-recovery to skip this. Secret values have a 64KB size limit. Automatic rotation requires a Lambda function. Secrets Manager charges per secret per month plus per API call.
HISTORY
AWS Secrets Manager was launched in April 2018 to provide a centralized secrets management service with built-in rotation capabilities. It replaced ad-hoc solutions like storing secrets in environment variables, configuration files, or Parameter Store.
