Search code examples
terraformrecaptchaterraform-provider-gcp

Migrate from "reCAPTCHA Classic" to "reCAPTCHA on a Google Cloud" using Terraform


Google recently sent out an email that all Google reCAPTCHA keys will need to be migrated to a Google Cloud project by the end of 2025. They also released a tutorial which guides you through the process.

When we open GCP Console, we can see that we have 2 reCAPTCHAs with Classic keys. They were created many years ago in reCAPTCHA Classic console.

enter image description here

There is an option to upgrade keys via GUI. According to the linked tutorial, key upgrade can also be performed using Cloud Shell, gcloud CLI or REST API.

Can the migration be performed using Terraform?


Solution

  • No you cannot perform this migration using Terraform, this has to be done in the GCP Console.

    Terraform would only help if you want to create a new reCAPTCHA site key.