Set up an AWS instance profile
Datadog recommends using the instance profile method of retrieving secrets because AWS handles all environment variables and session profiles for you. See the official AWS Secrets Manager documentation for setup instructions.
After you install the Worker, configure the Worker’s bootstrap file to resolve secrets using AWS Secrets Manager:
backend_type: aws.secrets
backend_config:
aws_session:
aws_region: <region_name>
Before you install the Worker, add the bootstrap configuration to the datadog.bootstrap.config section of the Helm chart values.yaml file:
bootstrap:
config:
secret:
backend_type: aws.secrets
backend_config:
aws_session:
aws_region: <region_name>
The following aws_session settings are available:
| Setting | Description |
|---|
| aws_region | AWS Region |
| aws_profile | AWS Session Profile |
| aws_role_arn | AWS sts:AssumeRole ARN |
| aws_external_id | AWS sts:AssumeRole ExternalId |
| aws_access_key_id | AWS IAM User Access Key ID |
| aws_secret_access_key | AWS IAM User Access Key Secret |
In most cases, you need to specify aws_region to correspond to the region hosting the Secrets Manager secret.
When handling single strings, the backend configuration setting force_string: true coerces the secret as a string value.