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:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set aws-ts-vpc-with-ecs-fargate-pycd pulumi-examples/aws-ts-vpc-with-ecs-fargate-pyWhat 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.
cd vpc-awsx-tsdirectory for usage information.cd ecs-fargate-pythondirectory for usage information.
The ecs fargate example is identical to original one https://github.com/pulumi/examples/tree/master/aws-py-fargate