hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.25k stars 1.7k forks source link

allowlistedCertificates attribute is missing in the terraform resource: google_certificate_manager_trust_config #18385

Open nimmy-jose-telus-com opened 4 weeks ago

nimmy-jose-telus-com commented 4 weeks ago

Community Note

Description

The GCP trust config terraform resource ( google_certificate_manager_trust_config) is supposed to have the allowlisted certificates list as per the documentation https://cloud.google.com/certificate-manager/docs/trust-configs. At the moment, the only option is to add it using yaml. The terraform resource doesn't have the allowlist attribute to add the allowlisted certificates.

New or Affected Resource(s)

google_certificate_manager_trust_config

Potential Terraform Configuration

resource "google_certificate_manager_trust_config" "default" { name = "trust-config" description = "sample description for the trust config" location = "us-central1"

trust_stores { trust_anchors { pem_certificate = file("test-fixtures/cert.pem") } intermediate_cas { pem_certificate = file("test-fixtures/cert.pem") } } allowlisted_certificates{ pem_certificate = file("test-fixtures/cert.pem") }

labels = { foo = "bar" } }

References

No response

b/347723017

Hamzawy63 commented 2 weeks ago

Hi, https://github.com/GoogleCloudPlatform/magic-modules/pull/10906 was sent to add the new field.