Use AWS Secrets Manager to retrieve, create, update, list, describe, delete, restore, tag, untag, or rotate secrets. Configure AWS credentials with permission for the target region and secret.
Deletion and rotation affect credentials used by other systems. Review the selected operation's recovery window and rotation settings before running it. Secret values returned by these actions are available to later workflow steps; handle them as credentials.
Retrieve, create, update, list, delete, describe, tag, untag, restore, and rotate secrets.
Retrieve a secret value from AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to retrieve versionIdstring No The unique identifier of the version to retrieve versionStagestring No The staging label of the version to retrieve (e.g., AWSCURRENT, AWSPREVIOUS)
Parameter Type Description namestring Name of the secret secretValuestring The decrypted secret value arnstring ARN of the secret versionIdstring Version ID of the secret versionStagesarray Staging labels attached to this version createdDatestring Date the secret was created
List secrets stored in AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key maxResultsnumber No Maximum number of secrets to return (1-100, default 100) nextTokenstring No Pagination token from a previous request
Parameter Type Description secretsjson List of secrets with name, ARN, description, dates, rotation rules/window, and version-to-stage mappings nextTokenstring Pagination token for the next page of results countnumber Number of secrets returned
Create a new secret in AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key namestring Yes Name of the secret to create secretValuestring Yes The secret value (plain text or JSON string) descriptionstring No Description of the secret
Parameter Type Description messagestring Operation status message namestring Name of the created secret arnstring ARN of the created secret versionIdstring Version ID of the created secret
Update the value of an existing secret in AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to update secretValuestring Yes The new secret value (plain text or JSON string) descriptionstring No Updated description of the secret
Parameter Type Description messagestring Operation status message namestring Name of the updated secret arnstring ARN of the updated secret versionIdstring Version ID of the updated secret
Delete a secret from AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to delete recoveryWindowInDaysnumber No Number of days before permanent deletion (7-30, default 30) forceDeleteboolean No If true, immediately delete without recovery window
Parameter Type Description messagestring Operation status message namestring Name of the deleted secret arnstring ARN of the deleted secret deletionDatestring Scheduled deletion date
Retrieve full metadata for a secret in AWS Secrets Manager, including rotation configuration and replication status, without exposing the secret value
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to describe
Parameter Type Description namestring Name of the secret arnstring ARN of the secret descriptionstring Description of the secret kmsKeyIdstring KMS key ID used to encrypt the secret rotationEnabledboolean Whether automatic rotation is enabled rotationLambdaARNstring ARN of the Lambda function used for rotation rotationRulesjson Rotation schedule configuration lastRotatedDatestring Date the secret was last rotated lastChangedDatestring Date the secret was last changed lastAccessedDatestring Date the secret was last accessed deletedDatestring Scheduled deletion date nextRotationDatestring Date the secret is next scheduled to rotate tagsarray Tags attached to the secret versionIdsToStagesjson Map of version IDs to their staging labels owningServicestring ID of the AWS service that manages this secret, if any createdDatestring Date the secret was created primaryRegionstring The primary region of the secret, if replicated replicationStatusarray Replication status for each region the secret is replicated to
Attach tags to a secret in AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to tag tagsjson Yes Tags to attach, as an array of {key, value} pairs (max 50)
Parameter Type Description messagestring Operation status message namestring Name or ARN of the tagged secret
Remove tags from a secret in AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to untag tagKeysjson Yes Tag keys to remove, as an array of strings (max 50)
Parameter Type Description messagestring Operation status message namestring Name or ARN of the untagged secret
Cancel a scheduled deletion for a secret in AWS Secrets Manager, restoring access to it
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to restore
Parameter Type Description messagestring Operation status message namestring Name of the restored secret arnstring ARN of the restored secret
Start or reconfigure rotation for a secret in AWS Secrets Manager
Inputs and outputsParameter Type Required Description regionstring Yes AWS region (e.g., us-east-1) accessKeyIdstring Yes AWS access key ID secretAccessKeystring Yes AWS secret access key secretIdstring Yes The name or ARN of the secret to rotate clientRequestTokenstring No Idempotency token for the new secret version (32-64 characters) rotationLambdaARNstring No ARN of the Lambda function that performs rotation (omit for managed rotation) automaticallyAfterDaysnumber No Number of days between rotations (1-1000). Mutually exclusive with schedule expression durationstring No Length of the rotation window in hours, e.g. "3h" scheduleExpressionstring No A cron() or rate() expression defining the rotation schedule rotateImmediatelyboolean No Whether to rotate immediately (default true) or wait for the next scheduled window
Parameter Type Description messagestring Operation status message namestring Name of the secret arnstring ARN of the secret versionIdstring ID of the new secret version created by rotation