Provides a CAS Certificate resource.
# Add a new Certificate.
resource "alicloud_cas_certificate" "cert" {
name = "test"
cert = file("${path.module}/test.crt")
key = file("${path.module}/test.key")
}
The following arguments are supported:
name
- (Required, ForcesNew) Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh
and .tel
are not supported.cert
- (Required, ForcesNew) Cert of the Certificate in which the Certificate will add.key
- (Required, ForcesNew) Key of the Certificate in which the Certificate will add.The following attributes are exported:
id
- The cert id.