Skip to main content

2.3.2 Creating AWS IAM Roles and Groups

Youtube ๐Ÿ“บ

In this section we'll be creating AWS IAM Roles and Groups that'll be used by Users in AWS accounts to access the specific resources.

๐Ÿ› ๏ธ Setup AWS IAM Roles and Groupsโ€‹

Let's go ahead and setup the AWS IAM Roles and Groups as described above. This will also setup the Route53 Domain names and Terraform state storage infrastructure for all prod and dev accounts.

cd ~/playground
cp -r ~/s4cpcode/chapter2/2C/. ~/playground

โœ๏ธ Edit dns.auto.tfvarsโ€‹

  • We need to add the domain name that we've configured in Domain Setup section.
  • Open File dns.auto.tfvars as shown below and add your domain name. Replace the string domainX with your domain.com

git status
git add .
git commit -m 'adding aws IAM Roles and Route53 Zones'
git push

๐Ÿ‘๏ธ View GHAโ€‹

Once the terraform is successfully applied your route53 Zones and AWS IAM Roles and Groups are successfully created. There is no Terraform Output at this stage.