- cd to your terraform you want to run. e.g:
cd terraform-create-ec2-instance - Run command
terraform init - Run command
terraform apply
Run command terraform destroy
- Terraform locals help us reduce duplication in our code. You guys can see in terraform-locals-variables