wtree Cloud

AWS Secrets Manager

Read secrets, or single fields of JSON secrets, from AWS Secrets Manager.

Before you start

Create an IAM user with programmatic access and a least-privilege policy:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["secretsmanager:GetSecretValue", "secretsmanager:ListSecrets"],
      "Resource": "arn:aws:secretsmanager:*:*:secret:wtree-cloud/*"
    }
  ]
}

ListSecrets only powers autocomplete. Without it, references still resolve.

Connect

Open Integrations › Secret vaults › Add provider and choose AWS Secrets Manager.

FieldValue
NameReference name, for example aws-sm
RegionFor example us-east-1
Access Key ID / Secret Access KeyThe IAM credentials
EndpointOptional. Custom endpoint for VPC endpoints or emulators such as LocalStack

Click Test connection, save, and assign projects and environments.

Use it

References use the secret name, not the ARN:

API_TOKEN=${{vault.aws-sm.api-token}}
DB_PASSWORD=${{vault.aws-sm.prod/database:password}}
DB_HOST=${{vault.aws-sm.prod/database:host}}

Without a field, the whole SecretString is injected as stored, which suits apps that parse a JSON blob from one variable. Append :<field> to pick one key of a JSON secret.

Limits

Binary secrets are not supported. Only SecretString values work.

On this page