AWS Secrets Manager

Connect to AWS Secrets Manager

AWS Secrets Manager is a secrets management service that helps you protect access to your applications, services, and IT resources. It enables you to rotate, manage, and retrieve database credentials, API keys, and other secrets throughout their lifecycle.

With AWS Secrets Manager, you can:

  • Securely store secrets: Encrypt secrets at rest using AWS KMS encryption keys
  • Retrieve secrets programmatically: Access secrets from your applications and workflows without hardcoding credentials
  • Rotate secrets automatically: Configure automatic rotation for supported services like RDS, Redshift, and DocumentDB
  • Audit access: Track secret access and changes through AWS CloudTrail integration
  • Control access with IAM: Use fine-grained IAM policies to manage who can access which secrets
  • Replicate across regions: Automatically replicate secrets to multiple AWS regions for disaster recovery

In Sim, the AWS Secrets Manager integration allows your workflows to securely retrieve credentials and configuration values at runtime, create and manage secrets as part of automation pipelines, and maintain a centralized secrets store that your agents can access. This is particularly useful for workflows that need to authenticate with external services, rotate credentials, or manage sensitive configuration across environments — all without exposing secrets in your workflow definitions.

Usage Instructions

Integrate AWS Secrets Manager into the workflow. Can retrieve, create, update, list, and delete secrets.

Tools

secrets_manager_get_secret

Retrieve a secret value from AWS Secrets Manager

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

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, and dates
nextTokenstringPagination token for the next page of results
countnumberNumber of secrets returned

secrets_manager_create_secret

Create a new secret in AWS Secrets Manager

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

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

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

On this page

Start building today
Trusted by over 100,000 builders.
The open-source platform to build AI agents and run your agentic workforce.
Get started