-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
30 lines (28 loc) · 1.01 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module "networking" {
source = "./module/networking"
cidr_block = var.cidr_block
availability_zones = var.availability_zones
dmz_public_cidrs = var.dmz_public_cidrs
app_private_cidrs = var.app_private_cidrs
accessip = var.accessip
log_bucket = module.aws_logs.aws_logs_bucket
}
module "compute" {
source = "./module/compute"
availability_zones = var.availability_zones
public_key = var.public_key
bastion_sg = module.networking.bastion_sg
webserver_sg = module.networking.webserver_sg
dmz_public_subnets = module.networking.dmz_public_subnets
app_private_subnets = module.networking.app_private_subnets
target_group_arn = module.networking.target_group_arn
alb_dns_name = module.networking.alb_dns_name
}
module "aws_logs" {
source = "trussworks/logs/aws"
s3_bucket_name = var.s3_bucket_name
region = var.aws_region
default_allow = false
allow_alb = true
force_destroy = true
}