Required access policy scopes:
resource "grafana_cloud_stack" "test" {
name = "gcloudstacktest"
slug = "gcloudstacktest"
region_slug = "eu"
description = "Test Grafana Cloud Stack"
}
name
(String) Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net
).slug
(String) Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug>
will make the instance available at https://<stack_slug>.grafana.net
.description
(String) Description of stack.labels
(Map of String) A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\-.]+$" and stacks cannot have more than 10 labels.region_slug
(String) Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.url
(String) Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net
before creating the stackwait_for_readiness
(Boolean) Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true
.wait_for_readiness_timeout
(String) How long to wait for readiness (if enabled). Defaults to 5m0s
.alertmanager_name
(String) Name of the Alertmanager instance configured for this stack.alertmanager_status
(String) Status of the Alertmanager instance configured for this stack.alertmanager_url
(String) Base URL of the Alertmanager instance configured for this stack.alertmanager_user_id
(Number) User ID of the Alertmanager instance configured for this stack.graphite_name
(String)graphite_status
(String)graphite_url
(String)graphite_user_id
(Number)id
(String) The stack id assigned to this stack by Grafana.logs_name
(String)logs_status
(String)logs_url
(String)logs_user_id
(Number)org_id
(Number) Organization id to assign to this stack.org_name
(String) Organization name to assign to this stack.org_slug
(String) Organization slug to assign to this stack.otlp_url
(String) Base URL of the OTLP instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.profiles_name
(String)profiles_status
(String)profiles_url
(String)profiles_user_id
(Number)prometheus_name
(String) Prometheus name for this instance.prometheus_remote_endpoint
(String) Use this URL to query hosted metrics data e.g. Prometheus data source in Grafanaprometheus_remote_write_endpoint
(String) Use this URL to send prometheus metrics to Grafana cloudprometheus_status
(String) Prometheus status for this instance.prometheus_url
(String) Prometheus url for this instance.prometheus_user_id
(Number) Prometheus user ID. Used for e.g. remote_write.status
(String) Status of the stack.traces_name
(String)traces_status
(String)traces_url
(String) Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo
to the URL.traces_user_id
(Number)Import is supported using the following syntax:
terraform import grafana_cloud_stack.name "{{ stackSlugOrID }}"