add chain output (#2901)
This commit is contained in:
committed by
GitHub
parent
a8d7d401d6
commit
aee6d1e27a
@@ -127,8 +127,9 @@ module "cas" {
|
|||||||
|
|
||||||
| name | description | sensitive |
|
| name | description | sensitive |
|
||||||
|---|---|:---:|
|
|---|---|:---:|
|
||||||
| [ca_ids](outputs.tf#L17) | The CA ids. | |
|
| [ca_chains](outputs.tf#L17) | The CA chains in PEM format. | |
|
||||||
| [ca_pool](outputs.tf#L25) | The CA pool. | |
|
| [ca_ids](outputs.tf#L25) | The CA ids. | |
|
||||||
| [ca_pool_id](outputs.tf#L30) | The CA pool id. | |
|
| [ca_pool](outputs.tf#L33) | The CA pool. | |
|
||||||
| [cas](outputs.tf#L35) | The CAs. | |
|
| [ca_pool_id](outputs.tf#L38) | The CA pool id. | |
|
||||||
|
| [cas](outputs.tf#L43) | The CAs. | |
|
||||||
<!-- END TFDOC -->
|
<!-- END TFDOC -->
|
||||||
|
|||||||
@@ -14,11 +14,19 @@
|
|||||||
* limitations under the License.
|
* 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" {
|
output "ca_ids" {
|
||||||
description = "The CA ids."
|
description = "The CA ids."
|
||||||
value = {
|
value = {
|
||||||
for k, v in google_privateca_certificate_authority.default
|
for k, v in google_privateca_certificate_authority.default :
|
||||||
: k => v.id
|
k => v.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +43,7 @@ output "ca_pool_id" {
|
|||||||
output "cas" {
|
output "cas" {
|
||||||
description = "The CAs."
|
description = "The CAs."
|
||||||
value = {
|
value = {
|
||||||
for k, v in google_privateca_certificate_authority.default
|
for k, v in google_privateca_certificate_authority.default :
|
||||||
: k => v
|
k => v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user