Skip to content

Commit

Permalink
feat: add default nacl variables to pass down to module
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoolala committed Oct 13, 2021
1 parent 1ca8869 commit 7a52e69
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ module "vpc" {
# service discovery stuff
enable_dns_hostnames = true

# nacl
manage_default_network_acl = var.manage_default_network_acl
default_network_acl_name = var.default_network_acl_name
default_network_acl_tags = var.default_network_acl_tags

# others
map_public_ip_on_launch = var.map_public_ip_on_launch
tags = merge(var.tags, local.vpc_tags)
Expand Down
18 changes: 18 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,21 @@ variable "map_public_ip_on_launch" {
type = bool
default = true
}

variable "manage_default_network_acl" {
description = "Should be true to adopt and manage Default Network ACL"
type = bool
default = false
}

variable "default_network_acl_name" {
description = "Name to be used on the Default Network ACL"
type = string
default = ""
}

variable "default_network_acl_tags" {
description = "Additional tags for the Default Network ACL"
type = map(string)
default = {}
}

0 comments on commit 7a52e69

Please sign in to comment.