Terraform Error after Migrating to Version 1.0.0: "auth0_trigger_binding.password_change_flow"
Last Updated:
Overview
When using the Auth0 Terraform provider to manage infrastructure and migrating to version 1.0.0 of the Terraform provider, an error occurs that relates to the old schema.
During the execution of the tool, when attempting to update the configuration, the following error occurs:
Error: no schema available for auth0_trigger_binding.password_change_flow while reading state
This article will explain a potential cause of this error.
Applies To
- Terraform
Cause
This issue occurs because there is no longer a resource named auth0_trigger_binding. In the new version, it is now auth0_trigger_actions.
Solution
The following advice is primarily relevant to version 1.0.0 of the Terrform provider, though it may also be relevant to later versions.
When upgrading from an earlier version of the Terraform provider, carefully check the contents of the Migration guide to make sure that no steps have been missed.
This particular issue can be resolved with these steps :
- Run:
terraform state rm auth0_trigger_binding.password_change_flow - Renaming resource from
auth0_trigger_binding.password_change_flow
auth0_trigger_actions.password_change_flow 3. Run: terraform import auth0_trigger_actions.password_change_flow post-change-password