DEV Community

loading...

Create IAM (User, Roles and Policies)

Salman Sohail
Detail-oriented programmer and architect with 10+ years’ success devising innovative and tailored solutions to meet ever-changing business requirements within diverse industries.
Originally published at salzam.com on ・3 min read

This article is the continuation of WordPress with Docker, AWS (ECS, Code Pipeline, Load Balancer, RDS, EFS) Complete Series. For better understating, please start from the beginning of the series.

In this article, we will prepare our IAM User and attach Amazon Elastic Container Registry (ECR) policy to it. It will help us to push our local Dockerized WordPress to AWS ECR.

Other than that, we will create IAM Roles for our Services such as CodeDeploy and CodePipeline so that code is automatically deployed on change.

Create ECR Policy

Login to your AWS console search IAM from the service tab and it will take you to the IAM Management Console. Click on Policies tab and select Create policy

Click on choose a service and select Elastic Container Registry. In the resource section, Select all resources.

Give your policy a name and write that name down somewhere.

Create IAM User

We will now create an IAM User and attach the ECR policy we have create earlier.

From your IAM Management Console. Click on Users tab and select Add user and follow the simple steps to assign the newly created policy to the IAM User.

Finish all the steps until you see the following screen.

Download the CSV file, we need the credentials in that file in order to push our wordpress docker build to AWS ECR in the next article.

Discussion (0)

Forem Open with the Forem app