I have a GCP project with :
when adding the cert into the certificate map, I receive error :
ERROR: (gcloud.certificate-manager.maps.entries.create) INVALID_ARGUMENT: certificate "projects/200020001113/locations/global/certificates/cert-dev-global" has invalid scope
I don't understand as it should match (both are "global"). Any help ?
Hi @nalb,
Welcome to Google Cloud Community!
While both are labeled as "global," Google-managed certificates (listed as "Certificate" rather than "classicCertificate") are currently region-specific, even when set to ALL_REGIONS. If the certificate is Google-managed, it may not be compatible with a global certificate map.
Alternative Solution:
gcloud certificate-manager maps create my-regional-map --location=<REGION
Then, add the certificate to the newly created map.
Certificate maps are not supported by cross-region internal Application Load Balancers. After you create the Google-managed certificate, attach the certificate directly to the target proxy.
Other References: Certificate Manager Limitations, GCP Public Tracker: Certificate Manager does not support --scope="all-regions"
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.