Skip to main content

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

This example lives in the pulumi/examples repository. Check out just this directory to use it:

Get started with this example
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 code for deploying your own ECS Fargate cluster with tags 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 is built using the Pulumi AWSx 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. The vpc outputs will be read as inputs in the ecs fargate.

Which Backend are we using?#

We are going to use the Pulumi Cloud backend for state storage.

Running the Example#

Clone the examples repo 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

Related

The infrastructure as code platform for any cloud.