---
title: "RDS Postgres and containerized Airflow"
description: "AWS RDS and Airflow example"
url: "https://www.pulumi.com/dev/examples/aws-ts-airflow/"
image: "https://www.pulumi.com/assets/og/dev/examples/aws-ts-airflow.png"
---

# RDS Postgres and containerized Airflow

AWS RDS and Airflow example

- Source on GitHub: https://github.com/pulumi/examples/tree/master/aws-ts-airflow
- Deploy with Pulumi: https://app.pulumi.com/new?template=https%3A%2F%2Fgithub.com%2Fpulumi%2Fexamples%2Ftree%2Fmaster%2Faws-ts-airflow

## Get started with this example

This example lives in the [pulumi/examples](https://github.com/pulumi/examples/tree/master/aws-ts-airflow) repo. Pull down just this directory to follow along:

```bash
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set aws-ts-airflow
cd pulumi-examples/aws-ts-airflow
```

A Pulumi program to deploy an RDS Postgres instance and containerized Airflow.

## Prerequisites

1. [Install Pulumi](https://www.pulumi.com/docs/get-started/install/)
2. [Configure AWS credentials](https://www.pulumi.com/docs/intro/cloud-providers/aws/setup/)
3. [Install Node.js](https://www.pulumi.com/docs/intro/languages/javascript/)

## Deploying the example

1. Create a new stack:

    ```bash
    pulumi stack init airflow
    ```

1. Set the AWS region to deploy into:

    ```bash
    pulumi config set aws:region us-east-1
    ```

1. Set the desired RDS password:

    ```bash
    pulumi config set --secret airflow:dbPassword DESIREDPASSWORD
    ```

1. Install dependencies:

    ```bash
    npm install
    ```

1. Deploy the stack. After the preview is shown you will be prompted whether to continue or not.

    ```bash
    pulumi up
    ```

    ```
    Previewing 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:

```bash
pulumi destroy
pulumi stack rm
```
