From 13b3a1e00cb7fbc0eb90c5463a3796b669219b12 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 17 May 2024 16:20:42 -0400 Subject: [PATCH] update docs --- acmpca-iam-rolesanywhere/README.md | 56 ++++++++++++++++++++++++++++++ acmpca-iam-rolesanywhere/main.tf | 56 ++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/acmpca-iam-rolesanywhere/README.md b/acmpca-iam-rolesanywhere/README.md index 31bd19e..86e8d59 100644 --- a/acmpca-iam-rolesanywhere/README.md +++ b/acmpca-iam-rolesanywhere/README.md @@ -25,6 +25,10 @@ module "certificate" { role_name = "r-edl-cods" contact_email = "group-mailing-list@census.gov" +## optional +## certificate_subject_ou = "IAM RolesAnywhere EDL" +## validity_days = 30 + tags = merge( local.base_tags, local.common_tags, @@ -34,6 +38,58 @@ module "certificate" { ) } ``` +# Sample Output Fields +## certificate\_details +```hcl +certificate_details = tomap({ + "is_ca" = "false" + "issuer" = "CN=US Census Bureau AWS uge1 CA1,OU=PKI,O=U.S. Census Bureau,C=US" + "not_after" = "2025-05-17T20:01:21Z" + "not_before" = "2024-05-17T19:01:21Z" + "public_key_algorithm" = "RSA" + "serial_number" = "299504527720560123004605552014079790533" + "sha1_fingerprint" = "47579407dedeb9c39c94cf3a295f578929e42ff5" + "signature_algorithm" = "SHA384-RSA" + "subject" = "CN=r-edl-cods,OU=IAM RolesAnywhere EDL,O=U.S. Census Bureau,C=US" + "version" = "3" +}) +``` + +## certificate\_issuer\_details +```hcl +certificate_issuer_details = tomap({ + "is_ca" = "true" + "issuer" = "CN=US Census Bureau CA Issuing CA 1,OU=TCO+OU=PKI,0.9.2342.19200300.100.1.25=#130643656e737573,0.9.2342.19200300.100.1.25=#1303476f76" + "not_after" = "2026-06-27T19:55:52Z" + "not_before" = "2023-06-28T19:55:52Z" + "public_key_algorithm" = "RSA" + "serial_number" = "981232789038868979201913777997235598800191546" + "sha1_fingerprint" = "513eae8b5d4752b8eb1902cb07b42bea17ca9393" + "signature_algorithm" = "SHA256-RSA" + "subject" = "CN=US Census Bureau AWS uge1 CA1,OU=PKI,O=U.S. Census Bureau,C=US" + "version" = "3" +}) +``` + +## certificate\_issuer\_subject +```hcl +certificate_issuer_subject = { + "common_name" = "US Census Bureau AWS uge1 CA1" + "country" = "US" + "organization" = "U.S. Census Bureau" + "organizational_unit" = "PKI" +} +``` + +## certificate\_subject +```hcl +certificate_subject = { + "common_name" = "r-edl-cods" + "country" = "US" + "organization" = "U.S. Census Bureau" + "organizational_unit" = "IAM RolesAnywhere EDL" +} +``` ## Requirements diff --git a/acmpca-iam-rolesanywhere/main.tf b/acmpca-iam-rolesanywhere/main.tf index ab6e3ca..bcc32b3 100644 --- a/acmpca-iam-rolesanywhere/main.tf +++ b/acmpca-iam-rolesanywhere/main.tf @@ -25,6 +25,10 @@ * role_name = "r-edl-cods" * contact_email = "group-mailing-list@census.gov" * +* ## optional +* ## certificate_subject_ou = "IAM RolesAnywhere EDL" +* ## validity_days = 30 +* * tags = merge( * local.base_tags, * local.common_tags, @@ -34,6 +38,58 @@ * ) * } * ``` +* # Sample Output Fields +* ## certificate_details +* ```hcl +* certificate_details = tomap({ +* "is_ca" = "false" +* "issuer" = "CN=US Census Bureau AWS uge1 CA1,OU=PKI,O=U.S. Census Bureau,C=US" +* "not_after" = "2025-05-17T20:01:21Z" +* "not_before" = "2024-05-17T19:01:21Z" +* "public_key_algorithm" = "RSA" +* "serial_number" = "299504527720560123004605552014079790533" +* "sha1_fingerprint" = "47579407dedeb9c39c94cf3a295f578929e42ff5" +* "signature_algorithm" = "SHA384-RSA" +* "subject" = "CN=r-edl-cods,OU=IAM RolesAnywhere EDL,O=U.S. Census Bureau,C=US" +* "version" = "3" +* }) +* ``` +* +* ## certificate_issuer_details +* ```hcl +* certificate_issuer_details = tomap({ +* "is_ca" = "true" +* "issuer" = "CN=US Census Bureau CA Issuing CA 1,OU=TCO+OU=PKI,0.9.2342.19200300.100.1.25=#130643656e737573,0.9.2342.19200300.100.1.25=#1303476f76" +* "not_after" = "2026-06-27T19:55:52Z" +* "not_before" = "2023-06-28T19:55:52Z" +* "public_key_algorithm" = "RSA" +* "serial_number" = "981232789038868979201913777997235598800191546" +* "sha1_fingerprint" = "513eae8b5d4752b8eb1902cb07b42bea17ca9393" +* "signature_algorithm" = "SHA256-RSA" +* "subject" = "CN=US Census Bureau AWS uge1 CA1,OU=PKI,O=U.S. Census Bureau,C=US" +* "version" = "3" +* }) +* ``` +* +* ## certificate_issuer_subject +* ```hcl +* certificate_issuer_subject = { +* "common_name" = "US Census Bureau AWS uge1 CA1" +* "country" = "US" +* "organization" = "U.S. Census Bureau" +* "organizational_unit" = "PKI" +* } +* ``` +* +* ## certificate_subject +* ```hcl +* certificate_subject = { +* "common_name" = "r-edl-cods" +* "country" = "US" +* "organization" = "U.S. Census Bureau" +* "organizational_unit" = "IAM RolesAnywhere EDL" +* } +* ``` */ locals {