Terraform Script For Creating AWS VPC, Public/Private Subnets, Nat gateways etc

The best way for automating through terraform is using module structures.

This open source community terraform script has the necessary terraform resources to use it as a complete VPC module.

Every terraform resource is parameterized and you can pass all the vpc, subnets and other resources as variables to the Module.

All the dynamically generated values such as vpc id’s, subnet id’s are stored as outputs.