Open cstavitsky opened 4 months ago
Routing to @getsentry/product-owners-apis for triage ⏲️
Assigning to @getsentry/support for routing ⏲️
This is a valid request, Adding this to our backlog but we don't plan to work on this in the next couple of months. We will comment here as we have any updates
Problem Statement
Asking on behalf of a customer.
The context for usage is with Terraform, but this is a problem that isn't limited to Terraform IMO, so I'm putting this issue in the main Sentry repo.
Error message received is:
"This environment has not been created."
(I believe this comes from here although I don't see where this function is called.)It's currently possible to work around this by sending a test event to Sentry with the CLI tool in a given environment... or initializing the SDK (Docs)... because now the environment will exist, so the error quoted above won't happen anymore. However, this workaround step feels clunky. Can we offer the ability to create environments more directly, without needing to send an event?
The customer's reason for asking for this:
So to restate overall:
'myenv'
in Sentry, even before Sentry has received any data in'myenv'
.'myenv'
at least once in order to successfully define an alert for'myenv'
Solution Brainstorm
Maybe we could offer the ability to create an environment for the org directly via a public API endpoint?
This could then also be leveraged by Sentry's Terraform integration.
Product Area
APIs