-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
37 lines (31 loc) · 1 KB
/
outputs.tf
File metadata and controls
37 lines (31 loc) · 1 KB
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
36
37
# outputs.tf - Salidas del módulo de Droplets en DigitalOcean
# Información del Droplet
output "droplet_id" {
description = "Droplet ID"
value = digitalocean_droplet.main.id
}
output "droplet_urn" {
description = "Droplet URN"
value = digitalocean_droplet.main.urn
}
output "droplet_ipv4_address" {
description = "Public IPv4 assigned"
value = digitalocean_droplet.main.ipv4_address
}
output "droplet_ipv4_address_private" {
description = "Private IPv4 assigned"
value = digitalocean_droplet.main.ipv4_address_private
}
output "droplet_ipv6_address" {
description = "IPv6 assigned"
value = var.enable_ipv6 ? digitalocean_droplet.main.ipv6_address : null
}
# Información del Firewall
output "firewall_id" {
description = "Firewall ID"
value = digitalocean_firewall.main.id
}
output "floating_ip_address" {
description = "Floating IP assigned to the droplet"
value = var.floating_ip != null ? var.floating_ip : digitalocean_droplet.main.ipv4_address
}