» 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 = "${data.alicloud_cas_certificates.certs.certificates.0.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).
  • ids - (Optional, Available in 1.52.0+) A list of cert IDs.

» Attributes Reference

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

  • ids - A list of cert IDs.
  • names - A list of cert names.
  • certificates - A list of apis. Each element contains the following attributes: