Kickstart your Infrastructure as Code journey with Terraform using this repository.
Make sure the SSH key is added to your GitHub account.
git clone [email protected]:pasindu-kavinda-227/Terraform-IaC-Starter.git
Create a file named terraform.tfvars
Generate these keys from the AWS console. You can select a AWS region.
access_key = "AWS Access Key ID here"
secret_key = "AWS Secret Key here"
region = "AWS Region here"
Run the Terraform Init command to initialize.
Make sure you have installed the Terraform CLI.
terraform init
Run the Terraform Plan command to preview the changes that Terraform plans to make to your infrastructure.
terraform plan
Run the Terraform Apply command to apply the changes that Terraform plans to make to your infrastructure.
terraform apply
Run command with
-auto-approve
to skip interactive approval.
Run Terraform Destroy command to revert the changes.
terraform apply -destroy