Introduction
Amazon CodeCatalyst is a software development service that helps developers to build and deliver applications on AWS with less effort and time. You can easily start a new software development project, including CI/CD, deployable code, issue tracking, and AWS services configured according to best practices with the help of blueprints provided by the CodeCatalyst project. This article will show how to create and deploy ASP.NET core Web API to AWS Elastic Beanstalk using the CodeCatalyst blueprint.
Pre-requisites
Sign up for Amazon CodeCatalyst. Create your space and development role.
Task 1. Create a sample ASP.NET Core Web API project
This task will show you how to create a sample ASP.NET Core Web API project using the CodeCatalyst blueprint.
Step 1. Open the browser and navigate to CodeCatalyst.
Step 2. Navigate to the space where you want to create the project. Note: In my case, I have created the space named as AWSSamples. Throughout this article, I will be using this space.
Step 3. On the top right corner, click Create Project.
Step 4. Select Start with a blueprint. In the search box, search for .NET and select ASP.NET Core Web API blueprint. Click Next.
Step 5. Enter the project name, select the Deployment role from the dropdown, language as C#, and AWS deployment service as AWS Elastic Beanstalk (Linux). Click Create Project.
Note. It will take a few minutes to set up the project, workflows, and CI/CD pipelines.
Step 6. You can view the repository details, Workflow, and other details as shown below.
Step 7. In the left navigation, expand CI/CD and click Workflows. Click on the latest run to view all the details and logs, as shown below.
Step 8. Once the deployment is completed, navigate to the Elastic Beanstalk service in AWS Console to view the deployed application, as shown below.
Task 2. Clean up resources
Delete all the resources to ensure you're not charged for any services you aren't using.
Summary
This article describes how to create and deploy ASP.NET Core Web API to AWS Elastic Beanstalk using the Amazon CodeCatalyst blueprint.