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 |
|
||||
|---|---|:---:|
|
||||
| [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 -->
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user