DevOps(Day-72): Project - Deploying a nginx webapp through AWS Fargate, ECS & ECR - Part1
TABLE OF CONTENTS
Aim
Pre-requisite
Project Build
Cloning the source code from GitHub
Configuring image in AWS ECR
Configuring IAM
Aim
Deploying an Nginx application image through AWS ECR to AWS Fargate and ECS to make our application live.
Pre-requisite
Writing a Dockerfile
Building AWS EC2 instance.
Project Build
Cloning the source code from GitHub
Let's go to the GitHub repository and copy the source code url.
Create an EC2 instance in AWS management console. Navigate to the EC2 instance.
Clone the repository from GitHub to the EC2 instance.
Configuring image in AWS ECR
Navigate to AWS ECR.
Create a repository. I have selected public repository and the repo name.
Select all the operating systems and versions according to the OS of Fargate you would select. Finally, create the repository.
Now, you can check the public repository for the created repository.
Configuring IAM
Create an IAM user in the AWS management console.
Attach the policies required for accessing the ECR.
Install the awscli in the AWS EC2 instance.
Connect the EC2 instance with AWS management console through awscli.
Thanks for reading my article. Have a nice day.
Comments
Post a Comment