This terraform module creates networking infrastructure like VPC, Subnet, Internet Gateway, NAT Gateway, Route Table, Routing Rules etc.
Documentation of this module is inside docs directory, written using Sphinx. To generate HTML, enter into
docs directory and then run the command make html
. It will create static documentation found in docs/build/html
directory.
First enter into terraform directory to run the following commands.
- Installs required terraform plugins. See more details here
terraform init
- View execution plan
terraform plan --var-file input_value.tfvars
- Apply the configurations
terraform apply --var-file input_value.tfvars --auto-approve
Remove --auto-approve
option from the above command to approve manually (by inputting prompt).
If the input file is named exactly terraform.tfvars
or any variation of *.auto.tfvars
, those
will be loaded automatically, you don't need to pass --var-file
option with the command. In this
case the command is as following.
terraform apply --auto-approve
And, the JSON version of the input files follows the same above rules.
- Destroy all resources
terraform destroy --var-file input.tfvars --auto-approve
Remove --auto-approve
option from the above command to approve manually (by inputting prompt).