Skip to content

Latest commit

 

History

History
111 lines (87 loc) · 1.72 KB

grafana_user.md

File metadata and controls

111 lines (87 loc) · 1.72 KB

grafana_user

back

Index

Terraform

terraform {
  required_providers {
    grafana = ">= 1.9.0"
  }
}

top

Example Usage

module "grafana_user" {
  source = "./modules/grafana/r/grafana_user"

  # email - (required) is a type of string
  email = null
  # is_admin - (optional) is a type of bool
  is_admin = null
  # login - (optional) is a type of string
  login = null
  # name - (optional) is a type of string
  name = null
  # password - (required) is a type of string
  password = null
}

top

Variables

variable "email" {
  description = "(required)"
  type        = string
}

variable "is_admin" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "login" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "password" {
  description = "(required)"
  type        = string
}

top

Resource

resource "grafana_user" "this" {
  # email - (required) is a type of string
  email = var.email
  # is_admin - (optional) is a type of bool
  is_admin = var.is_admin
  # login - (optional) is a type of string
  login = var.login
  # name - (optional) is a type of string
  name = var.name
  # password - (required) is a type of string
  password = var.password
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = grafana_user.this.id
}

output "this" {
  value = grafana_user.this
}

top