You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
585 B
20 lines
585 B
resource "tls_private_key" "account_key" {
|
|
algorithm = "RSA"
|
|
rsa_bits = 2048
|
|
}
|
|
|
|
resource "acme_registration" "cluster_reg" {
|
|
account_key_pem = tls_private_key.account_key.private_key_pem
|
|
email_address = var.acme_account_email
|
|
}
|
|
|
|
resource "acme_certificate" "cluster_cert" {
|
|
account_key_pem = acme_registration.cluster_reg.account_key_pem
|
|
common_name = "api.${local.network_domain}"
|
|
subject_alternative_names = ["*.apps.${local.network_domain}"]
|
|
key_type = "2048" // RSA 2048
|
|
|
|
dns_challenge {
|
|
provider = "gandiv5"
|
|
}
|
|
}
|
|
|