Configures storage buckets to be optionally exposed via service endpoints

This commit is contained in:
Rob Gil
2020-01-22 19:35:54 -05:00
parent 9042a960bb
commit 01703b1488
5 changed files with 40 additions and 10 deletions

View File

@@ -5,6 +5,8 @@ module "task_order_bucket" {
name = var.name
environment = var.environment
region = var.region
policy = "Deny"
subnet_ids = [module.vpc.subnets]
}
module "tf_state" {
@@ -14,4 +16,6 @@ module "tf_state" {
name = var.name
environment = var.environment
region = var.region
policy = "Allow"
subnet_ids = []
}

View File

@@ -36,6 +36,14 @@ variable "networks" {
}
}
variable "service_endpoints" {
type = map
default = {
public = ""
private = "Microsoft.Storage,Microsoft.KeyVault"
}
}
variable "gateway_subnet" {
type = string
default = "10.1.20.0/24"

View File

@@ -1,13 +1,14 @@
module "vpc" {
source = "../../modules/vpc/"
environment = var.environment
region = var.region
virtual_network = var.virtual_network
networks = var.networks
gateway_subnet = var.gateway_subnet
route_tables = var.route_tables
owner = var.owner
name = var.name
dns_servers = var.dns_servers
source = "../../modules/vpc/"
environment = var.environment
region = var.region
virtual_network = var.virtual_network
networks = var.networks
gateway_subnet = var.gateway_subnet
route_tables = var.route_tables
owner = var.owner
name = var.name
dns_servers = var.dns_servers
service_endpoints = var.service_endpoints
}