Skip to content

Commit ff2fb92

Browse files
committed
Rename variable nat_elastic_ips to nat_elastic_ips
Intentional breaking change to indicate the actual use of this variable.
1 parent 238caf9 commit ff2fb92

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ locals {
1616
}
1717

1818
data "aws_eip" "nat_ips" {
19-
count = local.enabled ? length(var.existing_nat_ips) : 0
20-
public_ip = element(var.existing_nat_ips, count.index)
19+
count = local.enabled ? length(var.nat_elastic_ips) : 0
20+
public_ip = element(var.nat_elastic_ips, count.index)
2121
}
2222

2323
locals {
24-
use_existing_eips = length(var.existing_nat_ips) > 0
24+
use_existing_eips = length(var.nat_elastic_ips) > 0
2525
map_map = {
2626
short = "to_short"
2727
fixed = "to_fixed"

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ variable "nat_instance_type" {
7777
default = "t3.micro"
7878
}
7979

80-
variable "existing_nat_ips" {
80+
variable "nat_elastic_ips" {
8181
type = list(string)
8282
default = []
83-
description = "Existing Elastic IPs to attach to the NAT Gateway or Instance instead of creating a new one."
83+
description = "Existing Elastic IPs to attach to the NAT Gateway(s) or Instance(s) instead of creating new ones."
8484
}
8585

8686
variable "map_public_ip_on_launch" {

0 commit comments

Comments
 (0)