reference deployment

CI/CD for .NET Applications on AWS Fargate

Deploy an automated pipeline to build and deploy a .NET application to Fargate

This Quick Start is for users who want to create a continuous integration and continuous deployment (CI/CD) pipeline that automatically builds and deploys a containerized .NET application to AWS Fargate. 

Built using the AWS portfolio of DevOps services and best practices, the Quick Start can serve as both a reference architecture and a template for creating a fully implemented CI/CD pipeline for deploying a .NET application to Fargate. It also demonstrates how to use Fargate to host a containerized application using a fully managed AWS infrastructure.

AWS logo

This Quick Start was developed by AWS.

  •  What you'll build
  •  How to deploy
  •  Cost and licenses
  •  What you'll build
  • This Quick Start sets up the following:

    • A highly available architecture that spans two Availability Zones.
    • A virtual private cloud (VPC) configured with public and private subnets, according to AWS best practices, to provide you with your own virtual network on AWS.
    • AWS CodePipeline to create a pipeline with source, build, and deploy stages. The pipeline is invoked when a developer commits a code change to the CodeCommit repository.
      • AWS CodeCommit to host the application source code in a Git repository.  
      • AWS CodeBuild to serve as a CodePipeline stage for performing the build process for a container image.
      • Amazon Elastic Container Service (Amazon ECS) to deploy the updated application container image.
    • Amazon Simple Storage Service (Amazon S3) to store AWS CodePipeline artifacts.
    • AWS Identity and Access Management (IAM) roles for the CI/CD pipeline’s build and deployment process.  
    • In the public subnets, managed network address translation (NAT) gateways to allow outbound internet access for resources in the private subnets.
    • In the private subnets:
      • AWS Fargate tasks to host the containers using Amazon ECS.
      • An Application Load Balancer to direct traffic to the Fargate cluster.
  •  How to deploy
  • To deploy the Quick Start, follow the instructions in the deployment guide, which includes these steps. Launching the stack takes about 15 minutes.

    1. Sign in to your AWS account. If you don't have an account, sign up at https://aws.amazon.com.
    2. Launch the Quick Start. Before you create the stack, choose the AWS Region from the top toolbar. 
    3. Test the deployment. 

    Amazon may share user-deployment information with the AWS Partner that collaborated with AWS on the Quick Start.  

  •  Cost and licenses
  • You are responsible for the cost of the AWS services and any third-party licenses used while running this Quick Start reference deployment. There is no additional cost for using the Quick Start.

    The AWS CloudFormation templates for this Quick Start include configuration parameters that you can customize. Some of the settings, such as the instance type, affect the cost of deployment. For cost estimates, see the pricing pages for each AWS service you use. Prices are subject to change.

    Tip: After you deploy the Quick Start, create AWS Cost and Usage Reports to track costs associated with the Quick Start. These reports deliver billing metrics to an Amazon Simple Storage Service (Amazon S3) bucket in your account. They provide cost estimates based on usage throughout each month and aggregate the data at the end of the month. For more information about the report, see What are AWS Cost and Usage Reports?