Added vpc endpoints module to base_infra module

This commit is contained in:
Patrick de Ruiter 2020-08-05 12:59:24 +02:00
parent ba3d8c6458
commit 8449125237
3 changed files with 23 additions and 11 deletions

12
main.tf
View File

@ -52,6 +52,18 @@ module "subnets" {
tags = local.tags tags = local.tags
} }
module "vpc_endpoints" {
#count = var.enable_s3_endpoint ? 1 : 0
#source = "git@github.com:webuildyourcloud/terraform-aws-vpc_endpoints.git?ref=tags/0.18.1"
source = "git@github.com:webuildyourcloud/terraform-aws-vpc_endpoints.git"
#region = var.region
#name = var.name
vpc_id = module.vpc.vpc_id
private_route_table_id = module.subnets.private_route_table_ids
public_route_table_id = module.subnets.public_route_table_ids
#tags = local.tags
}
module "bastion" { module "bastion" {
source = "git@github.com:webuildyourcloud/terraform-aws-bastion.git" source = "git@github.com:webuildyourcloud/terraform-aws-bastion.git"
enable_bastion = true enable_bastion = true