Browse Source

fix: changes outputs for EIP to get information in NIC instead of EiPs

tags/11.0.0
Guillaume Donval 2 months ago
parent
commit
a6e60f90d3
Signed by: guillaume.donval <guillaume.donval@fxinnovation.com> GPG Key ID: 172AC3F9180CD64E
2 changed files with 23 additions and 26 deletions
  1. +3
    -0
      README.md
  2. +20
    -26
      outputs.tf

+ 3
- 0
README.md View File

@@ -173,6 +173,7 @@ Therefore until we find a more permanent solution for this we do NOT test this f
| ec2\_public\_dns | n/a |
| ec2\_public\_ip | n/a |
| eip\_ids | n/a |
| eip\_network\_interface\_ids | n/a |
| eip\_public\_dns | n/a |
| eip\_public\_ips | n/a |
| extra\_volume\_arns | n/a |
@@ -191,8 +192,10 @@ Therefore until we find a more permanent solution for this we do NOT test this f
| launch\_template\_default\_version | n/a |
| launch\_template\_id | n/a |
| launch\_template\_latest\_version | n/a |
| network\_interface\_eips | n/a |
| network\_interface\_ids | n/a |
| network\_interface\_mac\_addresses | n/a |
| network\_interface\_private\_dns\_names | n/a |
| network\_interface\_private\_ips | n/a |
| subnet\_ids | n/a |



+ 20
- 26
outputs.tf View File

@@ -137,24 +137,6 @@ output "eip_ids" {
}
}

// Commented Until this is fixed: https://github.com/terraform-providers/terraform-provider-aws/issues/15093
// Use ec2_private_ip instead
//output "eip_private_ips" {
// value = {
// primary = aws_eip.this_primary.*.private_ip
// extra = aws_eip.this_extra.*.private_ip
// }
//}

// Commented Until this is fixed: https://github.com/terraform-providers/terraform-provider-aws/issues/15093
// Use ec2_private_dns instead
//output "eip_private_dns" {
// value = {
// primary = aws_eip.this_primary.*.private_dns
// extra = aws_eip.this_extra.*.private_dns
// }
//}

output "eip_public_ips" {
value = {
primary = aws_eip.this_primary.*.public_ip
@@ -169,14 +151,12 @@ output "eip_public_dns" {
}
}

// Commented Until this is fixed: https://github.com/terraform-providers/terraform-provider-aws/issues/15093
// Use ec2_primary_network_interface_id and network_interface_ids instead
//output "eip_network_interfaces" {
// value = {
// primary = aws_eip.this_primary.*.network_interface
// extra = aws_eip.this_extra.*.network_interface
// }
//}
output "eip_network_interface_ids" {
value = {
primary = aws_eip_association.this_primary.*.network_interface_id
extra = aws_eip_association.this_extra.*.network_interface_id
}
}

####
# EBS
@@ -208,9 +188,23 @@ output "network_interface_mac_addresses" {
}
}

output "network_interface_private_dns_names" {
value = {
primary = aws_network_interface.this_primary.*.private_dns_name
extra = aws_network_interface.this_extra.*.private_dns_name
}
}

output "network_interface_private_ips" {
value = {
primary = aws_network_interface.this_primary.*.private_ips
extra = aws_network_interface.this_extra.*.private_ips
}
}

output "network_interface_eips" {
value = {
primary = aws_eip_association.this_primary.*.allocation_id
extra = aws_eip_association.this_extra.*.allocation_id
}
}

Loading…
Cancel
Save