-
Notifications
You must be signed in to change notification settings - Fork 18
Description
What happened?
creating a recaptcha enterprise key failed with following message:
google-native:recaptchaenterprise/v1:Key (primary):
error: object retrieval failure after successful create / read state: googleapi: Error 400: Invalid Key resource name 'projects/<PROJECT_NAME>/keys/primary-7fd671d'. Should be projects/{project ID or number}/keys/{site key id, 40 character long}
Expected Behavior
the key gets created and registered
Steps to reproduce
import * as pulumi from "@pulumi/pulumi";
import * as google_native from "@pulumi/google-native";
const config = new pulumi.Config();
const projectName = "YOUR_PROJECT_ID";
const keyName = "YOUR_DISPLAY_NAME";
// Create a google-native.recaptchaenterprise/v1.Key resource
const recaptchaKey = new google_native.recaptchaenterprise.v1.Key(keyName, {
project: projectName,
displayName: keyName,
webSettings: {
allowAllDomains: true,
integrationType: "CHECKBOX",
},
});
// Export the name of the key
export const recaptchaKeyName = recaptchaKey.name;
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).