» alicloud_cas_certificates

This data source provides a list of CAS Certificates in an Alibaba Cloud account according to the specified filters.

» Example Usage

data "alicloud_cas_certificates" "certs" {
  name_regex = "^cas"
  output_file = "${path.module}/cas_certificates.json"
}

output "cert" {
  value = "${alicloud_cas_certificate.certs.*.id}"
}

» Argument Reference

The following arguments are supported:

  • name_regex - (Optional) A regex string to filter results by the certificate name.

  • output_file - (Optional) File name where to save data source results (after running terraform plan).

» Attributes Reference

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

  • certificates - A list of apis. Each element contains the following attributes: