» 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 runningterraform 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:-
id
- The cert's id. -
name
- The cert's name. -
common
- The cert's common name. -
finger_print
- The cert's finger. -
issuer
- The cert's . -
org_name
- The cert's organization. -
province
- The cert's province. -
city
- The cert's city. -
country
- The cert's country. -
start_date
- The cert's not valid before time. -
end_date
- The cert's not valid after time. -
sans
- The cert's subject alternative name. -
expired
- The cert is expired or not. -
buy_in_aliyun
- The cert is buy from aliyun or not.
-