Skip to content

This terraform module creates AWS networking infrastructure like VPC, Subnet, Internet Gateway, NAT Gateway, Route Table, Routing Rules, etc.

License

Notifications You must be signed in to change notification settings

MhmdRyhn/aws_networking_infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Networking Infrastructure

This terraform module creates networking infrastructure like VPC, Subnet, Internet Gateway, NAT Gateway, Route Table, Routing Rules etc.

Documentation

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.

Commands To Manipulate Resources

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).

About

This terraform module creates AWS networking infrastructure like VPC, Subnet, Internet Gateway, NAT Gateway, Route Table, Routing Rules, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages