This is one of the most basic building blocks for setting up infrastructure on AWS.
Most of the answers you are looking for is in this video that specifically covers these modules
module "vpc" {
source = "git::https://github.com/schematical/sc-terraform.git//modules/vpc"
vpc_name = "dev"
bastion_keypair_name = "schematical_node_1"
}
Interested in supporting me as I maintain these free scripts? Click the link below:
This stuff can be a bit complex. Luckily we have a small community of people that like to help. So head on over to the Discord and feel free to ask any questions you might have.
I do consult on this so feel free to hop on over to Schematical.com and signup for a consultation.