DEV Community

Salman Sohail
Salman Sohail

Posted on • Originally published at salzam.com on

2 2

Create IAM (User, Roles and Policies)

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.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay