Skip to content

Instantly share code, notes, and snippets.

@shreeegupta
Created May 26, 2023 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreeegupta/10259c3dcfa74f3d36d6aa68b1363894 to your computer and use it in GitHub Desktop.
Save shreeegupta/10259c3dcfa74f3d36d6aa68b1363894 to your computer and use it in GitHub Desktop.
main.tf
# Modules
module "create_two_tier_aws" {
source = "./modules"
env = var.env
aws_region = var.aws_region
vpc_cidr_block = var.vpc_cidr
public_subnet_cidr_block = [var.public_subnet1_az1_cidr, var.public_subnet2_az2_cidr]
private_subnet_cidr_block = [var.private_subnet1_az1_cidr, var.private_subnet2_az2_cidr]
ec2_name = var.ec2_name
ssh_key = var.ssh_key
ami = var.ami
instance_type = var.instance_type
db_name = var.db_name
db_username = var.db_username
db_password = var.db_password
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment