Versions Compared

Key

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

...

Variables.tf file

The provider and the resource blocks in the main.tf file can be configured by changing the values in variables.tf file.
For example, if you want to change the aws_instace type from t2.small to t2.micro, replace the value here in this block.


variable "aws_instance" {
type = string
description = "instance_type"
default = "t2.small"
}


Other resource-specific values like aws_region, aws_ami, vpc and the subnet can also be changed the same way by editing the variable.tf file.

...