Skip to content

Commit

Permalink
adding fix publicip
Browse files Browse the repository at this point in the history
  • Loading branch information
RavinderReddyF5 committed Dec 22, 2022
1 parent 0a52caa commit 614c5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "aws_eip" "mgmt" {
# add an elastic IP to the BIG-IP External Public interface
#
resource "aws_eip" "ext-pub" {
count = var.cfe_secondary_vip_disable ? 0 : length(local.external_public_subnet_id)
count = length(local.external_public_subnet_id)
network_interface = length(compact(local.external_public_private_ip_primary)) > 0 ? aws_network_interface.public[count.index].id : aws_network_interface.public1[count.index].id
vpc = true
depends_on = [aws_eip.mgmt]
Expand Down

0 comments on commit 614c5be

Please sign in to comment.