grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.32k stars 262 forks source link

Expose oncall_access_token from within the Grafana Terraform provider's grafana_cloud_stack resource #4591

Open Alex3k opened 1 week ago

Alex3k commented 1 week ago

What would you like to see!

Today to fully automate OnCall you use Oncall resources within a Grafana provider and pass the oncall_access_token which seems to only be accessible via the UI.

This poses a major challenge when trying to automate everything end to end because I don't want to go into the UI after creating a grafana cloud stack via terraform, then trigger more automation to automate terraform.

It would be much easier if this token was accessible within the grafana_cloud_stack resource so that I can automate everything end to end without any human intervention

Product Area

Terraform/Crossplane

Anything else to add?

No response

github-actions[bot] commented 1 week ago

The current version of Grafana OnCall, at the time this issue was opened, is v1.7.2. If your issue pertains to an older version of Grafana OnCall, please be sure to list it in the PR description. Thank you :smile:!

iskhakov commented 1 week ago

It is probably easier to support Grafana Service Accounts, and get rid of OnCall API keys completely See https://github.com/grafana/oncall/issues/3812#issuecomment-1942838439