resource "grafana_user" "viewer" {
name = "Viewer"
email = "viewer@example.com"
login = "viewer"
password = "my-password"
}
resource "grafana_team" "test-team" {
name = "Test Team"
email = "teamemail@example.com"
members = [
grafana_user.viewer.email,
]
}
name
(String) The display name for the Grafana team created.email
(String) An email address for the team.ignore_externally_synced_members
(Boolean) Ignores team members that have been added to team by Team Sync.
Team Sync can be provisioned using grafana_team_external_group resource.
Defaults to true
.members
(Set of String) A set of email addresses corresponding to users who should be given membership
to the team. Note: users specified here must already exist in Grafana.org_id
(String) The Organization ID. If not set, the Org ID defined in the provider block will be used.preferences
(Block List, Max: 1) (see below for nested schema)team_sync
(Block List, Max: 1) Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise.
id
(String) The ID of this resource.team_id
(Number) The team id assigned to this team by Grafana.preferences
Optional:
home_dashboard_uid
(String) The UID of the dashboard to display when a team member logs in. Defaults to ``.theme
(String) The default theme for this team. Available themes are light
, dark
, system
, or an empty string for the default theme. Defaults to ``.timezone
(String) The default timezone for this team. Available values are utc
, browser
, or an empty string for the default. Defaults to ``.week_start
(String) The default week start day for this team. Available values are sunday
, monday
, saturday
, or an empty string for the default. Defaults to ``.team_sync
Optional:
groups
(Set of String)Import is supported using the following syntax:
terraform import grafana_team.name "{{ id }}"
terraform import grafana_team.name "{{ orgID }}:{{ id }}"