AWS Secrets Manager

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.

Use the block

Retrieve, create, update, list, delete, describe, tag, untag, restore, and rotate secrets.

Actions

Secrets Manager Get Secret

Retrieve a secret value from AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to retrieve
versionIdstringNoThe unique identifier of the version to retrieve
versionStagestringNoThe staging label of the version to retrieve (e.g., AWSCURRENT, AWSPREVIOUS)

Output

ParameterTypeDescription
namestringName of the secret
secretValuestringThe decrypted secret value
arnstringARN of the secret
versionIdstringVersion ID of the secret
versionStagesarrayStaging labels attached to this version
createdDatestringDate the secret was created

Secrets Manager List Secrets

List secrets stored in AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
maxResultsnumberNoMaximum number of secrets to return (1-100, default 100)
nextTokenstringNoPagination token from a previous request

Output

ParameterTypeDescription
secretsjsonList of secrets with name, ARN, description, dates, rotation rules/window, and version-to-stage mappings
nextTokenstringPagination token for the next page of results
countnumberNumber of secrets returned

Secrets Manager Create Secret

Create a new secret in AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
namestringYesName of the secret to create
secretValuestringYesThe secret value (plain text or JSON string)
descriptionstringNoDescription of the secret

Output

ParameterTypeDescription
messagestringOperation status message
namestringName of the created secret
arnstringARN of the created secret
versionIdstringVersion ID of the created secret

Secrets Manager Update Secret

Update the value of an existing secret in AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to update
secretValuestringYesThe new secret value (plain text or JSON string)
descriptionstringNoUpdated description of the secret

Output

ParameterTypeDescription
messagestringOperation status message
namestringName of the updated secret
arnstringARN of the updated secret
versionIdstringVersion ID of the updated secret

Secrets Manager Delete Secret

Delete a secret from AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to delete
recoveryWindowInDaysnumberNoNumber of days before permanent deletion (7-30, default 30)
forceDeletebooleanNoIf true, immediately delete without recovery window

Output

ParameterTypeDescription
messagestringOperation status message
namestringName of the deleted secret
arnstringARN of the deleted secret
deletionDatestringScheduled deletion date

Secrets Manager Describe Secret

Retrieve full metadata for a secret in AWS Secrets Manager, including rotation configuration and replication status, without exposing the secret value

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to describe

Output

ParameterTypeDescription
namestringName of the secret
arnstringARN of the secret
descriptionstringDescription of the secret
kmsKeyIdstringKMS key ID used to encrypt the secret
rotationEnabledbooleanWhether automatic rotation is enabled
rotationLambdaARNstringARN of the Lambda function used for rotation
rotationRulesjsonRotation schedule configuration
lastRotatedDatestringDate the secret was last rotated
lastChangedDatestringDate the secret was last changed
lastAccessedDatestringDate the secret was last accessed
deletedDatestringScheduled deletion date
nextRotationDatestringDate the secret is next scheduled to rotate
tagsarrayTags attached to the secret
versionIdsToStagesjsonMap of version IDs to their staging labels
owningServicestringID of the AWS service that manages this secret, if any
createdDatestringDate the secret was created
primaryRegionstringThe primary region of the secret, if replicated
replicationStatusarrayReplication status for each region the secret is replicated to

Secrets Manager Tag Resource

Attach tags to a secret in AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to tag
tagsjsonYesTags to attach, as an array of {key, value} pairs (max 50)

Output

ParameterTypeDescription
messagestringOperation status message
namestringName or ARN of the tagged secret

Secrets Manager Untag Resource

Remove tags from a secret in AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to untag
tagKeysjsonYesTag keys to remove, as an array of strings (max 50)

Output

ParameterTypeDescription
messagestringOperation status message
namestringName or ARN of the untagged secret

Secrets Manager Restore Secret

Cancel a scheduled deletion for a secret in AWS Secrets Manager, restoring access to it

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to restore

Output

ParameterTypeDescription
messagestringOperation status message
namestringName of the restored secret
arnstringARN of the restored secret

Secrets Manager Rotate Secret

Start or reconfigure rotation for a secret in AWS Secrets Manager

Inputs and outputs

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
secretIdstringYesThe name or ARN of the secret to rotate
clientRequestTokenstringNoIdempotency token for the new secret version (32-64 characters)
rotationLambdaARNstringNoARN of the Lambda function that performs rotation (omit for managed rotation)
automaticallyAfterDaysnumberNoNumber of days between rotations (1-1000). Mutually exclusive with schedule expression
durationstringNoLength of the rotation window in hours, e.g. "3h"
scheduleExpressionstringNoA cron() or rate() expression defining the rotation schedule
rotateImmediatelybooleanNoWhether to rotate immediately (default true) or wait for the next scheduled window

Output

ParameterTypeDescription
messagestringOperation status message
namestringName of the secret
arnstringARN of the secret
versionIdstringID of the new secret version created by rotation