back
terraform {
required_providers {
fastly = ">= 0.28.1"
}
}
top
module "fastly_tls_private_key" {
source = "./modules/fastly/r/fastly_tls_private_key"
# key_pem - (required) is a type of string
key_pem = null
# name - (required) is a type of string
name = null
}
top
variable "key_pem" {
description = "(required) - Private key in PEM format."
type = string
}
variable "name" {
description = "(required) - Customisable name of the private key."
type = string
}
top
resource "fastly_tls_private_key" "this" {
# key_pem - (required) is a type of string
key_pem = var.key_pem
# name - (required) is a type of string
name = var.name
}
top
output "created_at" {
description = "returns a string"
value = fastly_tls_private_key.this.created_at
}
output "id" {
description = "returns a string"
value = fastly_tls_private_key.this.id
}
output "key_length" {
description = "returns a number"
value = fastly_tls_private_key.this.key_length
}
output "key_type" {
description = "returns a string"
value = fastly_tls_private_key.this.key_type
}
output "public_key_sha1" {
description = "returns a string"
value = fastly_tls_private_key.this.public_key_sha1
}
output "replace" {
description = "returns a bool"
value = fastly_tls_private_key.this.replace
}
output "this" {
value = fastly_tls_private_key.this
}
top