File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,14 @@ locals {
66 ebs_iops = var. ebs_volume_type == " io1" ? var. ebs_iops : 0
77 availability_zone = var. availability_zone
88 root_volume_type = var. root_volume_type != " " ? var. root_volume_type : data. aws_ami . info . root_device_type
9- count_default_ips = var. associate_public_ip_address && var. assign_eip_address && var. instance_enabled && var. instance_count > 0 ? 1 : 0
9+ count_default_ips = var. associate_public_ip_address && var. assign_eip_address && var. instance_enabled ? var. instance_count : 0
1010 ssh_key_pair_path = var. ssh_key_pair_path == " " ? path. cwd : var. ssh_key_pair_path
1111}
1212
1313locals {
1414 public_ips = compact (
1515 concat (
16- coalescelist (aws_eip. default . * . public_ip , [" " ]),
17- coalescelist (aws_instance. default . * . public_ip , [" " ]),
16+ coalescelist (aws_eip. default . * . public_ip , aws_instance. default . * . public_ip ),
1817 coalescelist (aws_eip. additional . * . public_ip , [" " ])
1918 )
2019 )
You can’t perform that action at this time.
0 commit comments