File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ data "aws_ami" "main" {
114114}
115115
116116resource "aws_eip" "main" {
117- count = var. stack_pelotech_nat_enabled ? length (module. vpc . azs ) : 0
117+ count = ( var. stack_pelotech_nat_enabled || var . stack_create_pelotech_nat_eip ) ? length (module. vpc . azs ) : 0
118118 tags = {
119119 Name = " nat-${ var . stack_name } -${ count . index } "
120120 }
Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ variable "stack_create" {
88 default = true
99 description = " should resources be created"
1010}
11+ variable "stack_create_pelotech_nat_eip" {
12+ type = bool
13+ default = false
14+ description = " should create pelotech nat eip even if NAT isn't enabled - nice for getting ips created for allow lists"
15+ }
1116variable "eks_cluster_version" {
1217 type = string
1318 default = " 1.35"
You can’t perform that action at this time.
0 commit comments