Configure AWS Credentials

Since this workshop uses HCP Terraform to run Terraform remotely, you need to add your AWS credentials to the Workspace Variables in HCP instead of configuring them directly in the code.

Create an Access Key for an IAM User in the AWS Console

1. Sign in to the AWS Management Console. 2. In the upper right corner, click your account name, then select Security Credentials:

Credentials

3. After the page opens, under Access keys, choose Create access key:

Credentials

4. Select CLI as the Use case, confirm your selection, then click Next:

Credentials

5. Optionally enter a description for the access key, then click Create access key:

Credentials

6. Save your AWS Access Key ID and AWS Secret Access Key. You will need them to configure AWS credentials in HCP Terraform:

Credentials

Next Content