Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 1.25 KB

alicloud_ram_role_attachment.md

File metadata and controls

81 lines (60 loc) · 1.25 KB

alicloud_ram_role_attachment

back

Index

Terraform

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

top

Example Usage

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

  # instance_ids - (required) is a type of set of string
  instance_ids = []
  # role_name - (required) is a type of string
  role_name = null
}

top

Variables

variable "instance_ids" {
  description = "(required)"
  type        = set(string)
}

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

top

Resource

resource "alicloud_ram_role_attachment" "this" {
  # instance_ids - (required) is a type of set of string
  instance_ids = var.instance_ids
  # role_name - (required) is a type of string
  role_name = var.role_name
}

top

Outputs

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

output "this" {
  value = alicloud_ram_role_attachment.this
}

top