Skip to content

Commit

Permalink
Move tfvars back to secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Jan 5, 2024
1 parent c6b4a55 commit 16d6083
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firewall/ip_address_sets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "aws_wafv2_ip_set" "nul_ip_set" {
description = "NU Library IPv4 Addresses"
scope = "REGIONAL"
ip_address_version = "IPV4"
addresses = local.nul_ips
addresses = var.nul_ips.v4
tags = local.tags
}

Expand All @@ -12,7 +12,7 @@ resource "aws_wafv2_ip_set" "nul_ipv6_set" {
description = "NU Library IPv6 Addresses"
scope = "REGIONAL"
ip_address_version = "IPV6"
addresses = local.nul_ips_v6
addresses = var.nul_ips.v6
tags = local.tags
}

Expand Down
5 changes: 5 additions & 0 deletions firewall/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ variable "global_rate_limit" {
default = 1000
}

variable "nul_ips" {
type = map(list(string))
default = {v4 = [], v6 = []}
}

variable "resources" {
type = map
default = {}
Expand Down

0 comments on commit 16d6083

Please sign in to comment.