-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Create sentry key (DSN)? #14
Comments
Alternatively, a data source to get a list of keys by projects would probably work for us as well, as projects have a |
@mwarkentin I prefer to have 1 to 1 correspondence between the API resource endpoints and Terraform resources. The data source is a good idea. I will implement it sometime this week. |
@jianyuan Agreed, after looking at the API, I think it would make most sense as a separate |
At the moment, Terraform's data source does not support returning multiple entities. In Sentry, a key is differentiated by its name and ID. I think I found a good compromise: If there's only 1 project key, which is the case when a project is newly created, then the project key name or ID is optional. Otherwise, the data source should error and notify the user to add appropriate filtering. |
That sounds reasonable to me! |
Thanks! |
It'd be great if we could also create a sentry key for a project during creation, in order to provide it in an output.
They provide APIs to create/list/delete keys:
I suppose this would probably be it's own resource rather than being part of the project.
The text was updated successfully, but these errors were encountered: