Creating a user for Terraform authentication
For Terraform to provision resources in your cloud environment, you must provide access to Terraform with appropriate permissions. Terraform needs to authenticate with our AWS platform to create the resources that we will declare in our template. We specify that authentication by providing an AWS access key and secret key. If you have these keys already, then you can skip this section. In this section, we are going to create a new pair of AWS access key and secret key with administrator privileges so that Terraform doesn’t run into any permission issues:
- Log in to your AWS Console, search for
IAM Service
in the search bar, and click on IAM. We need to create a new IAM user to gain an access key and secret key. So, click on the Users link in the left panel and click on the Add users button. Provide a name for your new user. We can usecommand_user
orauthor
as a name for this user. We have not selected the Provide user access...