A CI/CD pipeline to build and deploy .Net application Docker images to managed container services in AWS.
Until I develop a CloudFormation script, you have to build the Code infrastructure manually. Here are the steps:
- Download or copy this repository source code.
- Create a CodePipeline that uses this code as the source trigger. That can be done via Github, CodeCommit, or S3 Zip.
- Configure the build step of the pipeline to use a CodeBuild project. That project should use the .Net Core 2.0 build image. It should also have advanced permission because you are building a Docker image. You also need to ensure the IAM Role used by the build server has access to ECR, you can use ECR:* for the access policy. Set the REPOSITORY_URI and CONTAINER_NAME evironment variables on the build project.
- Configure the deploy step of the Pipeline to ECS, set the Cluster and Serice name. For the input file name use: imagedefinitions.json