forked from clouddrove/terraform-digitalocean-certificate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
26 lines (23 loc) · 1.24 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
##-------------------------------------------------------
## OUTPUT
##-------------------------------------------------------
output "id" {
value = var.custom_certificate ? join("", digitalocean_certificate.custom[*].id) : join("", digitalocean_certificate.lets_encrypt[*].id)
description = "The unique ID of the certificate."
}
output "name" {
value = var.custom_certificate ? join("", digitalocean_certificate.custom[*].name) : join("", digitalocean_certificate.lets_encrypt[*].name)
description = "The name of the certificate."
}
output "not_after" {
value = var.custom_certificate ? join("", digitalocean_certificate.custom[*].not_after) : join("", digitalocean_certificate.lets_encrypt[*].not_after)
description = "The expiration date of the certificate."
}
output "sha1_fingerprint" {
value = var.custom_certificate ? join("", digitalocean_certificate.custom[*].sha1_fingerprint) : join("", digitalocean_certificate.lets_encrypt[*].sha1_fingerprint)
description = "The SHA-1 fingerprint of the certificate."
}
output "uuid" {
value = var.custom_certificate ? join("", digitalocean_certificate.custom[*].uuid) : join("", digitalocean_certificate.lets_encrypt[*].uuid)
description = "The UUID of the certificate"
}