Uploads a Custom TLS Private Key to Fastly. This can be combined with a fastly_tls_certificate
resource to provide a TLS Certificate able to be applied to a Fastly Service.
The Private Key resource requires a key in PEM format, and a name to identify it.
Basic usage:
resource "tls_private_key" "demo" {
algorithm = "RSA"
}
resource "fastly_tls_private_key" "demo" {
key_pem = tls_private_key.demo.private_key_pem
name = "tf-demo"
}
A Private Key can be imported using its ID, e.g.
$ terraform import fastly_tls_private_key.demo xxxxxxxxxxx
key_pem
(String, Sensitive) Private key in PEM format.name
(String) Customisable name of the private key.created_at
(String) Time-stamp (GMT) when the private key was created.id
(String) The ID of this resource.key_length
(Number) The key length used to generate the private key.key_type
(String) The algorithm used to generate the private key. Must be RSA.public_key_sha1
(String) Useful for safely identifying the key.replace
(Boolean) Whether Fastly recommends replacing this private key.