-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
35 lines (24 loc) · 946 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
output "instance_id" {
description = "The ID of the ECS instance"
value = try(huaweicloud_compute_instance.this[0].id, "")
}
output "instance_status" {
description = "The status of the ECS instance"
value = try(huaweicloud_compute_instance.this[0].status, "")
}
output "instance_public_ip" {
description = "The public IP of the ECS instance"
value = try(huaweicloud_compute_instance.this[0].public_ip, "")
}
output "instance_access_ipv4" {
description = "The fixed IPv4 address or the floating IP of the ECS instance"
value = try(huaweicloud_compute_instance.this[0].access_ip_v4, "")
}
output "instance_access_ipv6" {
description = "The fixed IPv6 address of the ECS instance"
value = try(huaweicloud_compute_instance.this[0].access_ip_v6, "")
}
output "instance_networks" {
description = "The list of network configurations of the ECS instance"
value = try(huaweicloud_compute_instance.this[0].network, [])
}