-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
19 lines (16 loc) · 935 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
output "certificate_key_path" {
description = "Secrets store path containing the certificate private key file."
value = local.asm_enabled || local.ssm_enabled ? coalesce(join("", aws_ssm_parameter.private_key.*.name), join("", aws_secretsmanager_secret.private_key.*.name)) : null
}
output "certificate_pem_path" {
description = "Secrets store path containing the certificate PEM file."
value = local.asm_enabled || local.ssm_enabled ? coalesce(join("", aws_ssm_parameter.certificate.*.name), join("", aws_secretsmanager_secret.certificate.*.name)) : null
}
output "certificate_pem" {
description = "Contents of the certificate PEM."
value = local.tls_certificate
}
output "certificate_arn" {
description = "ARN of certificate stored in ACM that other services may need to refer to. This is useful when the certificate is stored in ACM."
value = join("", aws_acm_certificate.default.*.arn)
}