Skip to main content
Connect to your AWS Secrets Manager to securely access application secrets, API keys, and sensitive data from your Prod AI integrations. This guide covers:

Prerequisites

To set up AWS Secrets Manager as a secret store for Prod AI you’ll need:
  • An AWS account with AWS Secrets Manager configured
  • Permission to create new IAM policies for your AWS account

Set up

Create IAM policy

Create an IAM policy to grant Prod AI access to your secrets This policy should be associated with either an IAM user (for Access Key auth) or an IAM role (for Assume Role auth when self-hosting the data plane). Below is an example policy:
We recommend only granting Prod AI access to the minimum set of secret ARN’s your team will use in Prod AI. For added security, create secrets that are prefixed with prod-ai/${env}/ to easily identify the secrets used in Prod AI.

Configure secret store

Configure a new secret store in Prod AI:
  1. Go to the Secrets Management page in Prod AI
  2. Click the AWS Secrets Manager tile
  3. Name your secret store integration
  4. If your secrets follow hierarchical naming conventions, specify a Prefix to filter secrets in this store. For example, if Prod AI secrets are all named like prod-ai/${env}/secret1, prod-ai/${env}/secret2, etc, then prod-ai/${env}/ will be the corresponding prefix value.
  5. Specify your AWS Region
  6. Select Auth type
    Paste the Access key ID and Secret access key for the IAM user Prod AI will act on behalf of.
  7. Configure caching rules for this store
  8. Optionally, add more configurations for different environments
  9. Click Create

Caching

If enabled, Prod AI can cache your secrets, reducing calls to your secrets manager and improving API performance when using secrets. Caching can be configured for each of your secret store’s configurations, letting you set different policies based on the environment. To configure caches, go to Secrets Management and click into your secrets store. From here you can:
  • Update the Cache TTL (seconds) to your desired caching interval
  • Clear the cache if you’ve rotated a secrets and need Prod AI to refetch secret values
Manage secret caching

Using secrets

For details on how to reference secrets in integration forms, see Using secrets.