From 6fff8aab8b04e5b16edb5bfd56ab42e8f8f9b02f Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 17 Jun 2021 11:44:00 -0400 Subject: [PATCH] update docs --- README.md | 11 +++++++++-- main.tf | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d4a3c61..beb7077 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ and then you can continue with the rest of the operation. In Terraform 0.12, mo ## LDAP Settings You will get a very weird error about the LDAP provider having an invalid DN format if you pass anything to `ldap_user` variable that does not look like a DN (cn=something,...). Be sure you've got a valid username and password for -LDAP. It's less importatn if you do not have `enable_ldap_creation` set to true (not sure if it will fail though). +LDAP. It's less important if you do not have `enable_ldap_creation` set to true (not sure if it will fail though). # Usage @@ -73,6 +73,13 @@ module "myrole2" { Creating a non-SAML role with inline policies ```hcl +data "aws_iam_document_policy" "my-policy-1" { + statement { + sid = "NameOfPermissiosn" + # rest of stuff + } +} + module "myrole3" { source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" @@ -81,7 +88,7 @@ module "myrole3" { inline_policies = [ { name = "my-policy-1" - policy = data.aws_iam_policy_documennt.my-policy-1.json + policy = data.aws_iam_policy_document.my-policy-1.json } ] } diff --git a/main.tf b/main.tf index b7c7266..d8baa2e 100644 --- a/main.tf +++ b/main.tf @@ -37,7 +37,7 @@ * ## LDAP Settings * You will get a very weird error about the LDAP provider having an invalid DN format if you pass anything to `ldap_user` * variable that does not look like a DN (cn=something,...). Be sure you've got a valid username and password for -* LDAP. It's less importatn if you do not have `enable_ldap_creation` set to true (not sure if it will fail though). +* LDAP. It's less important if you do not have `enable_ldap_creation` set to true (not sure if it will fail though). * * # Usage * @@ -74,6 +74,13 @@ * * Creating a non-SAML role with inline policies * ```hcl +* data "aws_iam_document_policy" "my-policy-1" { +* statement { +* sid = "NameOfPermissiosn" +* # rest of stuff +* } +* } +* * module "myrole3" { * source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" * @@ -82,7 +89,7 @@ * inline_policies = [ * { * name = "my-policy-1" -* policy = data.aws_iam_policy_documennt.my-policy-1.json +* policy = data.aws_iam_policy_document.my-policy-1.json * } * ] * }