Skip to content

Latest commit

 

History

History
101 lines (77 loc) · 1.66 KB

linode_user.md

File metadata and controls

101 lines (77 loc) · 1.66 KB

linode_user

back

Index

Terraform

terraform {
  required_providers {
    linode = ">= 1.16.0"
  }
}

top

Example Usage

module "linode_user" {
  source = "./modules/linode/r/linode_user"

  # email - (required) is a type of string
  email = null
  # restricted - (optional) is a type of bool
  restricted = null
  # username - (required) is a type of string
  username = null
}

top

Variables

variable "email" {
  description = "(required) - The email of the user."
  type        = string
}

variable "restricted" {
  description = "(optional) - If true, the user must be explicitly granted access to platform actions and entities."
  type        = bool
  default     = null
}

variable "username" {
  description = "(required) - The username of the user."
  type        = string
}

top

Resource

resource "linode_user" "this" {
  # email - (required) is a type of string
  email = var.email
  # restricted - (optional) is a type of bool
  restricted = var.restricted
  # username - (required) is a type of string
  username = var.username
}

top

Outputs

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

output "ssh_keys" {
  description = "returns a list of string"
  value       = linode_user.this.ssh_keys
}

output "tfa_enabled" {
  description = "returns a bool"
  value       = linode_user.this.tfa_enabled
}

output "this" {
  value = linode_user.this
}

top