generated from ministryofjustice/cloud-platform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvpc_servers.tf
33 lines (29 loc) · 1.28 KB
/
vpc_servers.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
31
32
33
module "servers_vpc" {
source = "./modules/servers_vpc"
byoip_pool_id = local.byoip_pool_id
cidr_block = "10.180.80.0/22"
cidr_block_new_bits = 2
corsham_vm_ip = local.corsham_vm_ip
dhcp_transit_gateway_id = local.dhcp_transit_gateway_id
enable_dhcp_transit_gateway_attachment = var.enable_dhcp_transit_gateway_attachment
model_office_vm_ip = local.model_office_vm_ip
pdns_ips = local.pdns_ips_list
prefix = module.dhcp_label.id
region = data.aws_region.current_region.id
tags = module.dhcp_label.tags
transit_gateway_route_table_id = local.transit_gateway_route_table_id
ssm_session_manager_endpoints = local.enable_load_testing || local.enable_rds_servers_bastion ? true : false
providers = {
aws = aws.env
}
}
module "dhcp_dns_vpc_flow_logs" {
source = "./modules/vpc_flow_logs"
prefix = "staff-device-dns-dhcp-${terraform.workspace}"
region = data.aws_region.current_region.id
tags = module.dhcp_label.tags
vpc_id = module.servers_vpc.vpc_id
providers = {
aws = aws.env
}
}