1. Configuration
  2. Secrets management

AWS Secrets Manager

Python

To use secrets in Python code, read these instructions.

YAML

To use secrets in YAML files (e.g. in data integration pipelines):

  1. Add the following keys and values to your environment variables so that Mage can access the AWS Secrets Manager:

    1. AWS_ACCESS_KEY_ID
    2. AWS_SECRET_ACCESS_KEY
    3. AWS_REGION
  2. Store a secret in AWS Secrets Manager.

  3. Use the following syntax in your YAML file to interpolate secret values from AWS Secrets Manager:

    "{{ aws_secret_var('some_name_for_secret') }}"
    

    For example:

    api_key: "{{ aws_secret_var('API_KEY') }}"
    access_token: "{{ aws_secret_var('ACCESS_TOKEN') }}"
    

GCP

To use secrets, read these instructions.


Azure

Coming soon