Skip to content

Latest commit

 

History

History
122 lines (97 loc) · 2.02 KB

alicloud_ram_user.md

File metadata and controls

122 lines (97 loc) · 2.02 KB

alicloud_ram_user

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_ram_user" {
  source = "./modules/alicloud/r/alicloud_ram_user"

  # comments - (optional) is a type of string
  comments = null
  # display_name - (optional) is a type of string
  display_name = null
  # email - (optional) is a type of string
  email = null
  # force - (optional) is a type of bool
  force = null
  # mobile - (optional) is a type of string
  mobile = null
  # name - (required) is a type of string
  name = null
}

top

Variables

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

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

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

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

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

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

top

Resource

resource "alicloud_ram_user" "this" {
  # comments - (optional) is a type of string
  comments = var.comments
  # display_name - (optional) is a type of string
  display_name = var.display_name
  # email - (optional) is a type of string
  email = var.email
  # force - (optional) is a type of bool
  force = var.force
  # mobile - (optional) is a type of string
  mobile = var.mobile
  # name - (required) is a type of string
  name = var.name
}

top

Outputs

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

output "this" {
  value = alicloud_ram_user.this
}

top