alicloud_cr_chains

This data source provides the Cr Chains of the current Alibaba Cloud user.

For information about CR Chains and how to use it, see What is Chain.

Example Usage

Basic Usage

data "alicloud_cr_chains" "ids" {
  instance_id = "example_value"
  ids         = ["example_value-1", "example_value-2"]
}

output "cr_chain_id_1" {
  value = data.alicloud_cr_chains.ids.chains.0.id
}

data "alicloud_cr_chains" "nameRegex" {
  instance_id = "example_value"
  name_regex  = "^my-Chain"
}

output "cr_chain_id_2" {
  value = data.alicloud_cr_chains.nameRegex.chains.0.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

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