add chain output (#2901)

This commit is contained in:
Ludovico Magnocavallo
2025-02-18 08:05:28 +01:00
committed by GitHub
parent a8d7d401d6
commit aee6d1e27a
2 changed files with 17 additions and 8 deletions

View File

@@ -127,8 +127,9 @@ module "cas" {
| name | description | sensitive |
|---|---|:---:|
| [ca_ids](outputs.tf#L17) | The CA ids. | |
| [ca_pool](outputs.tf#L25) | The CA pool. | |
| [ca_pool_id](outputs.tf#L30) | The CA pool id. | |
| [cas](outputs.tf#L35) | The CAs. | |
| [ca_chains](outputs.tf#L17) | The CA chains in PEM format. | |
| [ca_ids](outputs.tf#L25) | The CA ids. | |
| [ca_pool](outputs.tf#L33) | The CA pool. | |
| [ca_pool_id](outputs.tf#L38) | The CA pool id. | |
| [cas](outputs.tf#L43) | The CAs. | |
<!-- END TFDOC -->

View File

@@ -14,11 +14,19 @@
* limitations under the License.
*/
output "ca_chains" {
description = "The CA chains in PEM format."
value = {
for k, v in google_privateca_certificate_authority.default :
k => join("\n", v.pem_ca_certificates)
}
}
output "ca_ids" {
description = "The CA ids."
value = {
for k, v in google_privateca_certificate_authority.default
: k => v.id
for k, v in google_privateca_certificate_authority.default :
k => v.id
}
}
@@ -35,7 +43,7 @@ output "ca_pool_id" {
output "cas" {
description = "The CAs."
value = {
for k, v in google_privateca_certificate_authority.default
: k => v
for k, v in google_privateca_certificate_authority.default :
k => v
}
}