Deploying on Amazon ECS
In the previous section, we learned how to deploy an EC2 instance and configure it to run our Gin application on it. In this section, we will learn how to get the same results without managing an EC2 instance. AWS proposes two container orchestration services: ECS and EKS.
In this section, you will learn about ECS, which is a fully managed container orchestration service. Before deploying our application to ECS, we need to store the application Docker images in a remote repository. That's where an Elastic Container Registry (ECR) repository comes into play.
Storing images in a private repository
ECR is a widely used private Docker registry. To store images in a private repository, you need to create a repository in ECR first. To achieve that, follow these steps:
- Jump to the ECR dashboard from the AWS Management Console, click on the Create repository button, and choose
mlabouardy/recipes-api
as a name for your Gin RESTful API repository...