Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 8, 2024
1 parent 1baef1f commit 15b9aea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion acmpca-eks-cert-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This module creates an ACM-PCA certificate, using the `acmpca` submodule in this
EKS setup for cert-manager. See the general [documentation](../acmpca) for more low-level details. All the requirements and pre-requisities
for the for the [acmpca](../acmpca) submodule apply to this submodule.

This creates a certificate with the subject of **C=US,O=U.S. Census Bureau,OU=PKI-EKS,CN={clustername} Issuer {region\_short}**.
This creates a certificate with the subject of **C=US,O=U.S. Census Bureau,OU=PKI-EKS,CN={region\_short} {clustername} Issuer**.

This module returns:

Expand Down
9 changes: 7 additions & 2 deletions acmpca-eks-cert-manager/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* EKS setup for cert-manager. See the general [documentation](../acmpca) for more low-level details. All the requirements and pre-requisities
* for the for the [acmpca](../acmpca) submodule apply to this submodule.
*
* This creates a certificate with the subject of **C=US,O=U.S. Census Bureau,OU=PKI-EKS,CN={clustername} Issuer {region_short}**.
* This creates a certificate with the subject of **C=US,O=U.S. Census Bureau,OU=PKI-EKS,CN={region_short} {clustername} Issuer**.
*
* This module returns:
*
Expand All @@ -29,11 +29,16 @@ locals {
module "certificate" {
source = "../acmpca"

certificate_cn = format("%v Issuer %v", var.cluster_name, local.region_short)
certificate_cn = format("%v %v Issuer", local.region_short, var.cluster_name)
contact_email = var.contact_email
create_files = false
certificate_authority_mode = "general"
certificate_type = "subordinate-ca"
certificate_subject_overrides = { ou = "PKI-EKS" }
validity_days = 365

tags = merge(
var.tags,
local.base_tags,
)
}

0 comments on commit 15b9aea

Please sign in to comment.