Posted on • Originally published atsalzam.com on
Create IAM (User, Roles and Policies)
This article is the continuation ofWordPress 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 attachAmazon 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 asCodeDeploy andCodePipeline 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 selectCreate policy
Click onchoose a service and selectElastic 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.
Top comments(0)
For further actions, you may consider blocking this person and/orreporting abuse