Deploy a container with a DBC-built image on AWS Fargate
An example that builds a Docker image in DBC and deploys a container to AWS Fargate.
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-containers-dockerbuildcloudcd pulumi-examples/aws-ts-containers-dockerbuildcloudDeploys a AWS Fargate service. The service uses a Docker image that is build with Docker Build Cloud (DBC). The image is pushed to AWS ECR. This template prompts the user for an existing DBC builder.
Last revision: May 2024.
📋 Pre-requisites#
- Docker Build Cloud (DBC) builder
- 🚨 You must complete the DBC builder setup steps 🚨
- Docker Desktop / CLI
- Pulumi CLI
- Recommended Pulumi Cloud account
- npm
- AWS account and local credentials configured
👩🏫 Get started#
This Pulumi example is written as a template. It is meant to be copied via pulumi new as follows:
pulumi new https://github.com/pulumi/examples/tree/master/aws-ts-containers-dockerbuildcloudnpm installOnce copied to your machine, feel free to edit as needed.
Alternatively, click the button below to use Pulumi Deployments to deploy this app:
🎬 How to run#
To deploy your infrastructure, run:
pulumi up# select 'yes' to confirm the expected changes# wait a bit for everything to get deployed# ...# confirm your service is up and runningcurl $(pulumi stack output url)# 🎉 Ta-Da!🧹 Clean up#
To clean up your infrastructure, run:
pulumi destroy# select 'yes' to confirm the expected changes