Working with Input Variable for Terraform
- Till now we have been using values for region or EC2 AMI as hardcoded in our script, this can variablized
- Lets create a file namely variables.tf and input region name as value, please refer this link
- Make modification to current EC2 terraform, please refer this link
- Now apply this changes:
terraform apply