mirror of
https://github.com/hanzokms/terraform-provider.git
synced 2026-10-30 20:29:45 +00:00
37 lines
1.0 KiB
Terraform
37 lines
1.0 KiB
Terraform
resource "kms_project" "pki" {
|
|
name = "PKI Project"
|
|
slug = "pki-project"
|
|
type = "cert-manager"
|
|
description = "Project for managing SSL/TLS certificates"
|
|
}
|
|
|
|
# Root CA example
|
|
resource "kms_cert_manager_internal_ca" "root" {
|
|
project_slug = kms_project.pki.slug
|
|
|
|
type = "root"
|
|
name = "enterprise-root-ca"
|
|
common_name = "Enterprise Root Certificate Authority"
|
|
organization = "Acme Corp"
|
|
ou = "IT Security"
|
|
country = "US"
|
|
province = "California"
|
|
locality = "San Francisco"
|
|
key_algorithm = "RSA_2048"
|
|
}
|
|
|
|
# Intermediate CA example
|
|
resource "kms_cert_manager_internal_ca" "issuing" {
|
|
project_slug = kms_project.pki.slug
|
|
|
|
type = "intermediate"
|
|
name = "enterprise-issuing-ca"
|
|
common_name = "Enterprise Issuing Certificate Authority"
|
|
organization = "Acme Corp"
|
|
ou = "IT Security"
|
|
country = "US"
|
|
province = "California"
|
|
locality = "San Francisco"
|
|
key_algorithm = "RSA_2048"
|
|
}
|