Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 1.49 KB

alicloud_ram_role_policy_attachment.md

File metadata and controls

90 lines (68 loc) · 1.49 KB

alicloud_ram_role_policy_attachment

back

Index

Terraform

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

top

Example Usage

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

  # policy_name - (required) is a type of string
  policy_name = null
  # policy_type - (required) is a type of string
  policy_type = null
  # role_name - (required) is a type of string
  role_name = null
}

top

Variables

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

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

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

top

Resource

resource "alicloud_ram_role_policy_attachment" "this" {
  # policy_name - (required) is a type of string
  policy_name = var.policy_name
  # policy_type - (required) is a type of string
  policy_type = var.policy_type
  # 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_policy_attachment.this.id
}

output "this" {
  value = alicloud_ram_role_policy_attachment.this
}

top