You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After terraform import of the default Username-Password-Authentication authenticator using the auth0_connection and auth0_connection_clients terraform resources, terraform wants to replace (destroy/create) the auth0_connection_clients resource because the connection_id is missing from the remote state. (See Reproduction below.)
Expectation
After importing terraform resource auth0_connection_clients, I expect that subsequent 'terraform plan' and 'terraform apply' will not attempt to replace (destroy/create) the auth0_connection_clients resource.
Reproduction
create a new Auth0 Tenant
import the Username-Password-Authentication Authentication/Database using the auth0_connection terraform resource
import the client connections ("enabled_clients") using the auth0_connection_clients terraform resource
run terraform apply and obverse the terraform wants to replace the existing auth0_connection_clients resource
observe that the connection_id needs to be added to the auth0_connection_clients resource, and is the same connection ID use by the terraform import command
# auth0_connection_clients.main["Username-Password-Authentication"] must be replaced
-/+ resource "auth0_connection_clients" "main" {
+ connection_id = "con_xosKGzCgD65f1pV2" # forces replacement
~ enabled_clients = [
- "raTn1TPg7oR9buNtLWX5PxcFLhLHkK5R",
- "zfcuTnChfjJBYgAXHtri3rVg6pkVGYEP",
# (4 unchanged elements hidden)
]
~ id = "con_xosKGzCgD65f1pV2" -> (known after apply)
~ name = "Username-Password-Authentication" -> (known after apply)
~ strategy = "auth0" -> (known after apply)
}
Auth0 Terraform Provider version
v0.47.0
Terraform version
v1.4.6
The text was updated successfully, but these errors were encountered:
Checklist
Description
After
terraform import
of the defaultUsername-Password-Authentication
authenticator using theauth0_connection
andauth0_connection_clients
terraform resources, terraform wants to replace (destroy/create) theauth0_connection_clients
resource because theconnection_id
is missing from the remote state. (See Reproduction below.)Expectation
After importing terraform resource
auth0_connection_clients
, I expect that subsequent 'terraform plan' and 'terraform apply' will not attempt to replace (destroy/create) theauth0_connection_clients
resource.Reproduction
Username-Password-Authentication
Authentication/Database using theauth0_connection
terraform resourceauth0_connection_clients
terraform resourceterraform apply
and obverse the terraform wants to replace the existingauth0_connection_clients
resourceconnection_id
needs to be added to theauth0_connection_clients
resource, and is the same connection ID use by theterraform import
commandAuth0 Terraform Provider version
v0.47.0
Terraform version
v1.4.6
The text was updated successfully, but these errors were encountered: