1. Packages
  2. AWS
  3. How-to Guides
  4. Deploys a container with a Docker Build image on AWS Fargate
Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi

Deploys a container with a Docker Build image on AWS Fargate

aws logo
Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi

    View Code

    Deploys a AWS Fargate service. The service uses a Docker image that is build with the new Docker Build provider. The image is pushed to AWS ECR.

    Last revision: July 2024.

    ๐Ÿ“‹ Pre-requisites

    ๐Ÿ‘ฉโ€๐Ÿซ 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-dockerbuild
    npm install
    

    Once copied to your machine, feel free to edit as needed.

    ๐ŸŽฌ 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 running
    $ curl $(pulumi stack output url)
    # ๐ŸŽ‰ Ta-Da!
    

    ๐Ÿงน Clean up

    To clean up your infrastructure, run:

    $ pulumi destroy
    # select 'yes' to confirm the expected changes
    
    aws logo
    Viewing docs for AWS v7.24.0
    published on Tuesday, Mar 31, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.