Open bindermuehle opened 1 year ago
Thank you for reporting this @bindermuehle! It looks like auto-naming doesn't produce the valid format here.
As a workaround, could you try specifying the name explicitly?
const recaptchaKey = new google_native.recaptchaenterprise.v1.Key(keyName, {
project: projectName,
displayName: keyName,
name: "specify the full key id in the required format",
webSettings: {
allowAllDomains: true,
integrationType: "CHECKBOX",
},
});
the format of the name is as following.
"projects/{project}/keys/{key}".
I'm not sure how to generate the key.
reading through the API it seems the key has to be created using the API
https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#Key
Note that this resources is now supported in Google Classic as well. In general, it is likely best to use that in the near term.
https://www.pulumi.com/registry/packages/gcp/api-docs/recaptcha/enterprisekey/
What happened?
creating a recaptcha enterprise key failed with following message:
Expected Behavior
the key gets created and registered
Steps to reproduce
Output of
pulumi about
CLI Version 3.81.0 Go Version go1.21.1 Go Compiler gc
Plugins NAME VERSION gcp 6.65.0 google-native 0.31.1 nodejs unknown random 4.13.2
Host OS darwin Version 13.1 Arch arm64
This project is written in nodejs: executable='/Users/user/.nvm/versions/node/v18.16.1/bin/node' version='v18.16.1'
Dependencies: NAME VERSION @pulumi/gcp 6.65.0 @pulumi/google-native 0.31.1 @pulumi/pulumi 3.81.0 @pulumi/random 4.13.2 @types/node 16.18.38
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).