RDS Postgres and containerized Airflow
AWS RDS and Airflow example
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set aws-ts-airflowcd pulumi-examples/aws-ts-airflowA Pulumi program to deploy an RDS Postgres instance and containerized Airflow.
Prerequisites#
Deploying the example#
-
Create a new stack:
Terminal window pulumi stack init airflow -
Set the AWS region to deploy into:
Terminal window pulumi config set aws:region us-east-1 -
Set the desired RDS password:
Terminal window pulumi config set --secret airflow:dbPassword DESIREDPASSWORD -
Install dependencies:
Terminal window npm install -
Deploy the stack. After the preview is shown you will be prompted whether to continue or not.
Terminal window pulumi upPreviewing update of stack 'airflow'Previewing changes:Type Name Plan Info+ pulumi:pulumi:Stack airflow create...
Cleaning up#
Once you’re finished experimenting, destroy your stack and remove it:
pulumi destroypulumi stack rm