Terraform Provider "Error: 404 Not Found: The connection does not exist"
Sep 10, 2025
Overview
Error: 404 Not Found: The connection does not exist
Applies To
- Terraform
- Auth0 Connections
Cause
- A mismatch between the local and remote state. For example, if the connection was deleted in Auth0 after it was previously created using Terraform.
- The auth0_connection resource uses a different provider pointing to a different tenant. The result is that the auth0_connection resources exist in another tenant but not the one under which the auth0_connection_clients will be applied.
Solution
- If due to a mismatch between local and remote state, either:
- Delete the connection in Auth0 and rerun terraform apply to create a new connection and update the state with its new ID.
or
- Modify the existing Terraform state or revert to a previous version if available so that the ID of the auth0_connection resource matches the ID of the connection in Auth0.
- If due to the auth0_connection resource being under a different provider, depending on the configuration, either set an explicit provider alias in the resource block or remove the existing alias so it uses the default auth0 provider.