alicloud_mhub_products

This data source provides the Mhub Products of the current Alibaba Cloud user.

Example Usage

Basic Usage

variable "name" {
  default = "example_value"
}

resource "alicloud_mhub_product" "default" {
  product_name = var.name
}
data "alicloud_mhub_products" "ids" {}
output "mhub_product_id_1" {
  value = data.alicloud_mhub_products.ids.products.0.id
}

data "alicloud_mhub_products" "nameRegex" {
  name_regex = "^my-Product"
}
output "mhub_product_id_2" {
  value = data.alicloud_mhub_products.nameRegex.products.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

The following attributes are exported in addition to the arguments listed above: