-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
51 lines (41 loc) · 1.57 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# terraform-digitalocean-droplet
# ============================================================================
# Copyright (c) 2022 Nicholas de Jong <me [at] nicholasdejong.com>
# - All rights reserved.
#
# Apache License v2.0
# - http://www.apache.org/licenses/LICENSE-2.0
# outputs
# ============================================================================
output "hostname" {
description = "The hostname applied to this digitalocean-droplet."
value = var.hostname
}
output "region" {
description = "The digitalocean region-slug this digitalocean-droplet is running in."
value = var.digitalocean_region
}
output "droplet_id" {
description = "The droplet_id of this digitalocean-droplet."
value = digitalocean_droplet.droplet.id
}
output "ipv4_address" {
description = "The public IPv4 address of this digitalocean-droplet."
value = digitalocean_droplet.droplet.ipv4_address
}
output "ipv4_address_private" {
description = "The private IPv4 address of this digitalocean-droplet."
value = digitalocean_droplet.droplet.ipv4_address_private
}
output "ipv6_address" {
description = "The public IPv6 address of this digitalocean-droplet."
value = digitalocean_droplet.droplet.ipv6_address
}
output "volume0" {
description = "Volume0 attached to this digitalocean-droplet in the format <mount-point>:<mount-device>:<volume-id>:<mount-fstype>"
value = var.digitalocean_volume0
}
output "volume1" {
description = "Volume1 attached to this digitalocean-droplet in the format <mount-point>:<mount-device>:<volume-id>:<mount-fstype>"
value = var.digitalocean_volume1
}