-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Root resource was present, but now absent for auth0_connection_client #416
Comments
We're seeing this too! |
Hey folks, thanks a lot for reporting! I'm actively taking a look at this today and will raise a fix. In short the issue is caused by the fact that we're allowing We're gonna have to take a hard stance and remove the possibility of managing However until we do that and make a new version release, to fix your current config you'll need to make the flow of resource application deterministic by making use of a series of |
We've released a fix for this in https://github.com/auth0/terraform-provider-auth0/releases/tag/v0.41.0, but unfortunately there was no way to avoid the breaking changes. From now on the only way to manage Please try the new version and let us know if you encounter any issues! |
Hi all, I'm experiencing the same issue when trying to add permissions to a role. resource "auth0_role" "my_role" {
name = "Custom Role"
description = "A custom role"
}
resource "auth0_role_permissions" "custom_permissions" {
role_id = auth0_role.my_role.id
permissions {
resource_server_identifier = auth0_resource_server.my_resource_server.identifier
name = "group:custom_user"
}
} Error:
I'm using the latest version of the provider, 0.49. The role is created fine, just failing on the permissions part. |
Hey @Dan-Bird-ON 👋🏻 The issue you're experiencing is most likely happening because the permissions block is deprecated on the Can you try the following config and let us know 🙏🏻 resource "auth0_role" "my_role" {
name = "Custom Role"
description = "A custom role"
lifecycle {
ignore_changes = [ permissions ]
}
}
resource "auth0_role_permissions" "custom_permissions" {
role_id = auth0_role.my_role.id
permissions {
resource_server_identifier = auth0_resource_server.my_resource_server.identifier
name = "group:custom_user"
}
} This change is only necessary until we completely remove the If this doesn't fix your issue please open a separate GitHub issue and we'll have a deeper and focused dive on the issue 🙏🏻 |
Hey @sergiught Thanks for your speedy response! I did originally have that lifecycle block within the |
Checklist
Description
Hello!
When adding the
auth0_connection_client
resource, we're intermittently getting the below error.If we wait a little bit and re-apply the resource is created successfully. We've tried adding some
depends_on
statements to ensure the client and connection are created before attempting to associate them, but that doesn't seem to help.Happy to help troubleshoot in any way, just not sure what would be the most helpful.
Expectation
That the
auth0_connection_client
resource would be created successfully without errors and without having to re-apply.Reproduction
Auth0 Terraform Provider version
0.40.0
Terraform version
1.3.6
The text was updated successfully, but these errors were encountered: