tfwriter

Terraform HCL code generator.

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

alicloud_market_product

back

Index

Terraform

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

top

Example Usage

module "alicloud_market_product" {
  source = "./modules/alicloud/d/alicloud_market_product"

  # available_region - (optional) is a type of string
  available_region = null
  # product_code - (required) is a type of string
  product_code = null
}

top

Variables

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

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

top

Datasource

data "alicloud_market_product" "this" {
  # available_region - (optional) is a type of string
  available_region = var.available_region
  # product_code - (required) is a type of string
  product_code = var.product_code
}

top

Outputs

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

output "product" {
  description = "returns a list of object"
  value       = data.alicloud_market_product.this.product
}

output "this" {
  value = alicloud_market_product.this
}

top