Enables TLS on a domain using a specified custom TLS certificate.
Basic usage:
resource "fastly_service_vcl" "demo" {
name = "my-service"
domain {
name = "example.com"
}
backend {
address = "127.0.0.1"
name = "localhost"
}
force_destroy = true
}
resource "fastly_tls_private_key" "demo" {
key_pem = "..."
name = "demo-key"
}
resource "fastly_tls_certificate" "demo" {
certificate_body = "..."
name = "demo-cert"
depends_on = [fastly_tls_private_key.demo]
}
resource "fastly_tls_activation" "test" {
certificate_id = fastly_tls_certificate.demo.id
domain = "example.com"
depends_on = [fastly_service_vcl.demo]
}
A TLS activation can be imported using its ID, e.g.
$ terraform import fastly_tls_activation.demo xxxxxxxx
certificate_id
(String) ID of certificate to use. Must have the domain
specified in the certificate's Subject Alternative Names.domain
(String) Domain to enable TLS on. Must be assigned to an existing Fastly Service.configuration_id
(String) ID of TLS configuration to be used to terminate TLS traffic, or use the default one if missing.mutual_authentication_id
(String) An alphanumeric string identifying a mutual authentication.created_at
(String) Time-stamp (GMT) when TLS was enabled.id
(String) The ID of this resource.