tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_resource_manager_folder

back

Index

Terraform

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

top

Example Usage

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

  # folder_name - (required) is a type of string
  folder_name = null
  # parent_folder_id - (optional) is a type of string
  parent_folder_id = null
}

top

Variables

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

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

top

Resource

resource "alicloud_resource_manager_folder" "this" {
  # folder_name - (required) is a type of string
  folder_name = var.folder_name
  # parent_folder_id - (optional) is a type of string
  parent_folder_id = var.parent_folder_id
}

top

Outputs

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

output "parent_folder_id" {
  description = "returns a string"
  value       = alicloud_resource_manager_folder.this.parent_folder_id
}

output "this" {
  value = alicloud_resource_manager_folder.this
}

top