-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Wants to create resource when token has no permission to view #57
Comments
Just a hunch, but this might be an issue with the way the sentry api responds if you don't have permission to view an object (a team in this case) - often APIs will return a |
This new helper properly and uniformly handles Sentry API 404 errors with respect to the Terraform SDK. Prior to this commit, in most places an API error was always interpretted as a missing resource. Now, a 404 is considered a missing resource and other API errors are surfaced as real errors. This will ensure that, for example, a user with a malformed API token (bad permissions, etc) doesn't wipe out Terraform state. Fixes the following Github issues: - #40 - #57
Fixed in #70. |
I have a
*.tf
file with asentry_team
resource.After creating the team using terraform, If I use a SENTRY_TOKEN with no permission to read teams, then the provider assumes the team doesn't exist and wants to create a new one.
Took me a while to figure out that the problem was a permissions scope thing. I'd expected the provider to output something like a 403 error instead of silently failing.
The text was updated successfully, but these errors were encountered: