diff --git a/acmpca-eks-cert-manager/example.tf.txt b/acmpca-eks-cert-manager/example.tf.txt deleted file mode 100644 index cfa41fa..0000000 --- a/acmpca-eks-cert-manager/example.tf.txt +++ /dev/null @@ -1,54 +0,0 @@ -module "cert1" { - source = "git@github.e.it.census.gov:terraform-modules/aws-certificates//acmpca" - - certificate_dns = "test1.domain.census.gov" - contact_email = "cio.engineering.alert.list@census.gov" - create_files = false - certificate_authority_mode = "general" - certificate_type = "end-entity" - - ## optional - # certificate_san = [ "otherdomain.domain.census.gov" ] -} - - -module "cert2" { - source = "git@github.e.it.census.gov:terraform-modules/aws-certificates//acmpca" - - certificate_dns = "test2.domain.census.gov" - contact_email = "cio.engineering.alert.list@census.gov" - create_files = true - certificate_authority_mode = "general" - certificate_type = "subordinate-ca" - certificate_subject_overrides = { ou = "PKI-EKS my-cluster" } -} - -module "cert3" { - source = "git@github.e.it.census.gov:terraform-modules/aws-certificates//acmpca" - - certificate_dns = "test3.domain.census.gov" - contact_email = "cio.engineering.alert.list@census.gov" - create_files = false - certificate_authority_mode = "short" - validity_days = 2 - - ## optional - # certificate_san = [ "otherdomain.domain.census.gov" ] -} - -certificate_authority_mode = "general" -certificate_authority_template = "" -certificate_cn = "" -certificate_dns = "" -certificate_filename = "" -certificate_san = [] -certificate_subject_overrides = {} -certificate_type = "end-entity" -contact_email = "" -create_files = false -csr_filename = "" -key_filename = "" -output_file_directory = "" -override_prefixes = {} -tags = {} -validity_days = 365 diff --git a/examples/acmpca-eks-cert-manager/example.tf b/examples/acmpca-eks-cert-manager/example.tf new file mode 100644 index 0000000..9cbe436 --- /dev/null +++ b/examples/acmpca-eks-cert-manager/example.tf @@ -0,0 +1,27 @@ +module "subordinate_ca" { + source = "git@github.e.it.census.gov:terraform-modules/aws-certificates//acmpca-eks-cert-manager" + + cluster_name = "test-cluster-dev" + contact_email = "cio.engineering.alert.list@census.gov" + + tags = merge( + local.base_tags, + local.common_tags, + var.account_tags, + var.infrastructure_tags, + var.application_tags, + ) +} + + +# module.suborindate_ca.certificate_tls_key +# module.suborindate_ca.certificate_tls_crt + +## set { +## name = "tls.crt" +## value = module.suborindate_ca.certificate_tls_crt +## } +## set { +## name = "tls.key" +## value = module.suborindate_ca.certificate_tls_key +## }