Skip to content
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

Provide the cloud_provider_url as an output on a stack #1950

Open
johncblandii opened this issue Dec 10, 2024 · 0 comments
Open

Provide the cloud_provider_url as an output on a stack #1950

johncblandii opened this issue Dec 10, 2024 · 0 comments

Comments

@johncblandii
Copy link

johncblandii commented Dec 10, 2024

Feature Request

These instructions have a curl request:

curl -sH "Authorization: Bearer <Access Token from previous step>" "https://grafana.com/api/instances" | \
  jq '[.items[]|{stackName: .slug, clusterName:.clusterSlug, cloudProviderAPIURL: "https://cloud-provider-api-\(.clusterSlug).grafana.net"}]'

This returns something like https://cloud-provider-api-prod-us-central-0.grafana.net. This url is not provided dynamically so we have to hardcode the URL.

If this URL is specific to the stack, can we get it provided as an output to grafana_cloud_stack?

Might as well make sure all of these are returned:

[
  {
    "stackName": "herokublogpost",
    "clusterName": "prod-us-central-0",
    "cloudProviderAPIURL": "https://cloud-provider-api-prod-us-central-0.grafana.net"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant