Manages service account tokens of a Grafana Cloud stack using the Cloud API This can be used to bootstrap a management service account token for a new stack
Required access policy scopes:
resource "grafana_cloud_stack_service_account" "cloud_sa" {
stack_slug = "<your stack slug>"
name = "cloud service account"
role = "Admin"
is_disabled = false
}
resource "grafana_cloud_stack_service_account_token" "foo" {
name = "key_foo"
service_account_id = grafana_cloud_stack_service_account.cloud_sa.id
}
output "service_account_token_foo_key" {
value = grafana_cloud_stack_service_account_token.foo.key
sensitive = true
}
name
(String)service_account_id
(String)stack_slug
(String)seconds_to_live
(Number)expiration
(String)has_expired
(Boolean)id
(String) The ID of this resource.key
(String, Sensitive)