2 ms·
Given: https://registry.terraform.io/providers/hashicorp/google/5.3.0/docs/resources/cloud_run_v2_service https://registry.terraform.io/providers/hashicorp/goog
by mdaniel 3y ago
Given: https://registry.terraform.io/providers/hashicorp/google/5.3.0/docs/resources/cloud_run_v2_service https://registry.terraform.io/providers/hashicorp/google/5.3...
how would any reasonable person know what https://registry.terraform.io/providers/hashicorp/google/5.3.0/docs/resources/google_project_service https://registry.terraform.io/providers/hashicorp/google/5.3... to enable without (a) trying it and squinting at the error message (b) clicking on the API documentation <https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services https://cloud.google.com/run/docs/reference/rest/v2/projects...> then realizing it, also, does not mention run.googleapis.com, click on "supported service endpoints" <https://cloud.google.com/run/docs/reference/rest#rest_endpoints https://cloud.google.com/run/docs/reference/rest#rest_endpoi...> and only then learning about https://cloud.google.com/run/docs/reference/rest#service:-run.googleapis.com https://cloud.google.com/run/docs/reference/rest#service:-ru...
Repeat for https://registry.terraform.io/providers/hashicorp/google/5.3.0/docs/resources/cloud_identity_group https://registry.terraform.io/providers/hashicorp/google/5.3... although in both cases I guess the astute reader may have spotted the run.googleapis.com in the forbidden service labels and cloudidentity.googleapis.com in the example
Since, to the best of my knowledge those bindings are auto generated <https://github.com/GoogleCloudPlatform/magic-modules#magic-modules https://github.com/GoogleCloudPlatform/magic-modules#magic-m...>, I would hypothesize it is not insurmountable drop in the seemingly existing declaration of APIs required: https://github.com/GoogleCloudPlatform/magic-modules/blob/7d76e3b6f834bcea8f0edf086207af30da5e4665/mmv1/products/cloudrunv2/product.yaml#L26-L29 https://github.com/GoogleCloudPlatform/magic-modules/blob/7d... https://github.com/GoogleCloudPlatform/magic-modules/blob/7d76e3b6f834bcea8f0edf086207af30da5e4665/mmv1/products/cloudidentity/product.yaml#L26-L29 https://github.com/GoogleCloudPlatform/magic-modules/blob/7d...