Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Install terraform - https://www.terraform.io/downloads.html

(a)Download the zip file based on the server type. 
(b)Unzip the file to get the terraform binary.
(c)Currently supported Ubuntu version is 18.04

2. IAM Access Keys - Permissions required for running the template - AmazonEC2FullAccess

...

In order for Terraform to be able to create resources in your AWS account, you will need to configure the AWS credentials. One of the easiest of which is to set the following environment variables:

export

...

TF_VAR_aws_region="us-east-2"

...


export

...

TF_VAR_aws_ami="ami-026141f3d5c6d2d0c"

...


export

...

TF_VAR_aws_instance="t4g.medium"

...


export

...

TF_VAR_vpc_id=

...

"vpc-561e9f3e"
export TF_VAR_aws_subnet_id=

...

"subnet-d64dcabe"
export TF_VAR_access_key=

...

"AKIAY4UPZOCVUNW6T6HN"
export TF_VAR_secret_key="

...

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"
export TF_LOG="TRACE"

...


export

...

TF_LOG_PATH

...

=

...

"tf.log"

...

The variable.tf file takes the values from the envEnv's set above. 

Terraform Template

...