Kickstart your Infrastructure as Code journey with Terraform using this repository.
Make sure the SSH key is added to your GitHub account.
git clone git@github.com:pasindu-kavinda-227/Terraform-IaC-Starter.gitCreate 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 initRun the Terraform Plan command to preview the changes that Terraform plans to make to your infrastructure.
terraform planRun the Terraform Apply command to apply the changes that Terraform plans to make to your infrastructure.
terraform applyRun command with
-auto-approveto skip interactive approval.
Run Terraform Destroy command to revert the changes.
terraform apply -destroy