DevOps(Day-72): Project - Deploying a nginx webapp through AWS Fargate, ECS & ECR - Part1

  • Aim

  • Pre-requisite

  • Project Build

    • Cloning the source code from GitHub

    • Configuring image in AWS ECR

    • Configuring IAM

Deploying an Nginx application image through AWS ECR to AWS Fargate and ECS to make our application live.

  1. Writing a Dockerfile

  2. Building AWS EC2 instance.

  1. Let's go to the GitHub repository and copy the source code url.

  2. Create an EC2 instance in AWS management console. Navigate to the EC2 instance.

  3. Clone the repository from GitHub to the EC2 instance.

  4. Navigate to AWS ECR.

  5. Create a repository. I have selected public repository and the repo name.

  6. Select all the operating systems and versions according to the OS of Fargate you would select. Finally, create the repository.

  7. Now, you can check the public repository for the created repository.

  8. Create an IAM user in the AWS management console.

  9. Attach the policies required for accessing the ECR.

  10. Install the awscli in the AWS EC2 instance.

  11. Connect the EC2 instance with AWS management console through awscli.

    Thanks for reading my article. Have a nice day.

Comments

Popular posts from this blog

DevOps(Day-97): Meta-Arguments in Terraform

DevOps(Day-95): Auto Scaling with Terraform

DevOps (Day-1) Introduction