Set Up

Requirments

To do this lab, you will need to install Visual Studio Code, AWS CLI and Terraform on your local machine.

AWS Account

You should have an AWS account, which has an IAM user with Administrative permission.

Set up Visual Studio Code

After installing Visual Studio Code successfully, you can download an extension for Terraform called HashiCorp Terraform.

ConnectPrivate

Set up Terraform

You can check if the Terraform is installed on your local machine by opening terminal and typing terraform version

ConnectPrivate

Set up AWS CLI version 2

You can check if the AWS CLI is installed on your local machine by opening terminal and typing aws --version.

ConnectPrivate

Next, You will need to create an Access keys. Following these step below to create an Access keys.

  1. Click on your AWS account and it will appears a tab. Choose Security credentials.

ConnectPrivate

  1. Scroll down, you will see an Access keys interface. Click on Create access key.

ConnectPrivate

  1. In the Create access key interface, choose Third party service.

ConnectPrivate

  1. Then, check the square box. Choose Next.

ConnectPrivate

  1. Click on Create access key

ConnectPrivate

  1. Click on Download .csv file and Done.

ConnectPrivate

  1. Open the .csv file. You will see it has an access key and a secret key.

  2. Open the terminal and type aws configure. You will see some things appear in the terminal.

ConnectPrivate

  1. Configure like below:
  • AWS Access Key ID: Assign your access key
  • AWS Secret Access Key : Assign your secret access key
  • Default region name: Enter ap-southeast-1
  • Default output format: Enter json