Set up AWS Systems Manager (SSM) Parameter Store
Set up AWS Systems Manager (SSM) Parameter Store
Set up AWS Systems Manager (SSM) Parameter Store
In this section, you’ll learn how to use AWS Systems Manager (SSM) Parameter Store as a secrets backend on Astro.
If you use a different secrets backend tool or want to learn the general approach on how to integrate one, see Configure a Secrets Backend.
apache-airflow-providers-amazon. See Add Python and OS-level packages.values.yaml file from the Register Agents modal in your Deployments>Agents page.Create directories for Airflow variables and connections in Parameter Store that you want to store as secrets.
Variables and connections should be stored in /airflow/variables and /airflow/connections, respectively. For example, if you’re setting a secret variable with the key my_secret, it should be stored in the /airflow/connections/ directory. If you modify the directory paths, make sure you change the values for variables_prefix and connections_prefix in Step 2.
For instructions, see the AWS Systems Manager Console, the AWS CLI, or the Tools for Windows PowerShell documentation.
Add the following environment variables to your Astro project’s .env file:
You can now run a dag locally to check that your variables are accessible using Variable.get("<your-variable-key>").
Run the following commands to export your secrets backend configurations as environment variables to Astro.
(Optional) Remove the environment variables from your .env file or store your .env file in a safe location to protect your credentials in AIRFLOW__SECRETS__BACKEND_KWARGS.