Commit 08bdf6af authored by Lucas's avatar Lucas Committed by GitHub

feat: Add instance IPv6 addresses to the outputs (#249)

parent 85cabe38
...@@ -242,6 +242,7 @@ No modules. ...@@ -242,6 +242,7 @@ No modules.
| <a name="output_capacity_reservation_specification"></a> [capacity\_reservation\_specification](#output\_capacity\_reservation\_specification) | Capacity reservation specification of the instance | | <a name="output_capacity_reservation_specification"></a> [capacity\_reservation\_specification](#output\_capacity\_reservation\_specification) | Capacity reservation specification of the instance |
| <a name="output_id"></a> [id](#output\_id) | The ID of the instance | | <a name="output_id"></a> [id](#output\_id) | The ID of the instance |
| <a name="output_instance_state"></a> [instance\_state](#output\_instance\_state) | The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped` | | <a name="output_instance_state"></a> [instance\_state](#output\_instance\_state) | The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped` |
| <a name="output_ipv6_addresses"></a> [ipv6\_addresses](#output\_ipv6\_addresses) | The IPv6 address assigned to the instance, if applicable. |
| <a name="output_outpost_arn"></a> [outpost\_arn](#output\_outpost\_arn) | The ARN of the Outpost the instance is assigned to | | <a name="output_outpost_arn"></a> [outpost\_arn](#output\_outpost\_arn) | The ARN of the Outpost the instance is assigned to |
| <a name="output_password_data"></a> [password\_data](#output\_password\_data) | Base-64 encoded encrypted password data for the instance. Useful for getting the administrator password for instances running Microsoft Windows. This attribute is only exported if `get_password_data` is true | | <a name="output_password_data"></a> [password\_data](#output\_password\_data) | Base-64 encoded encrypted password data for the instance. Useful for getting the administrator password for instances running Microsoft Windows. This attribute is only exported if `get_password_data` is true |
| <a name="output_primary_network_interface_id"></a> [primary\_network\_interface\_id](#output\_primary\_network\_interface\_id) | The ID of the instance's primary network interface | | <a name="output_primary_network_interface_id"></a> [primary\_network\_interface\_id](#output\_primary\_network\_interface\_id) | The ID of the instance's primary network interface |
......
...@@ -53,6 +53,11 @@ output "private_ip" { ...@@ -53,6 +53,11 @@ output "private_ip" {
value = try(aws_instance.this[0].private_ip, aws_spot_instance_request.this[0].private_ip, "") value = try(aws_instance.this[0].private_ip, aws_spot_instance_request.this[0].private_ip, "")
} }
output "ipv6_addresses" {
description = "The IPv6 address assigned to the instance, if applicable."
value = try(aws_instance.this[0].ipv6_addresses, [])
}
output "tags_all" { output "tags_all" {
description = "A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block" description = "A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block"
value = try(aws_instance.this[0].tags_all, aws_spot_instance_request.this[0].tags_all, {}) value = try(aws_instance.this[0].tags_all, aws_spot_instance_request.this[0].tags_all, {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment