---
title: "Using Pulumi for NGINX on AWS ECS Fargate using Python with a vpc built in Typescript"
url: "https://www.pulumi.com/dev/examples/aws-ts-vpc-with-ecs-fargate-py/"
image: "https://www.pulumi.com/assets/og/dev/examples/aws-ts-vpc-with-ecs-fargate-py.png"
---

# Using Pulumi for NGINX on AWS ECS Fargate using Python with a vpc built in Typescript

- Source on GitHub: https://github.com/pulumi/examples/tree/master/aws-ts-vpc-with-ecs-fargate-py

## Get started with this example

This example lives in the [pulumi/examples](https://github.com/pulumi/examples/tree/master/aws-ts-vpc-with-ecs-fargate-py) 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-vpc-with-ecs-fargate-py
cd pulumi-examples/aws-ts-vpc-with-ecs-fargate-py
```

### What Is This?

This is [Pulumi](https://www.pulumi.com/) code for deploying your own [ECS Fargate cluster with tags](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) written in python on top of vpc built in typescript.

### Why would you do this?  
Code in whatever language you want, you can use things across go, python, typescript, and dotnet. Reuse whatever you can.

### How is the vpc built?

The [vpc](https://www.pulumi.com/docs/iac/guides/clouds/aws/vpc/) is built using the Pulumi [AWSx](https://www.pulumi.com/docs/iac/guides/clouds/aws/) package in `typescript`.

### How is the ecs cluster built?
The ecs cluster is built in `python`.

### How do we connect infrastructure written in typescript with python?
We do this via [StackReference](https://www.pulumi.com/docs/intro/concepts/stack/#stackreferences).
The vpc [outputs](https://www.pulumi.com/docs/reference/cli/pulumi_stack_output/) will be read as inputs in the ecs fargate.

### Which Backend are we using?

We are going to use the [Pulumi Cloud backend](https://www.pulumi.com/docs/intro/concepts/state/#pulumi-cloud-backend) for state storage.

## Running the Example

Clone [the examples repo](https://github.com/pulumi/examples/tree/master/aws-ts-vpc-with-ecs-fargate-py) and `cd` into it.

1. `cd vpc-awsx-ts` directory for usage information.
2. `cd ecs-fargate-python` directory for usage information.

The ecs fargate example is identical to original one https://github.com/pulumi/examples/tree/master/aws-py-fargate
