diff --git a/rolesanywhere/README.md b/rolesanywhere/README.md index 5e03946..f52f197 100644 --- a/rolesanywhere/README.md +++ b/rolesanywhere/README.md @@ -15,13 +15,13 @@ tf-apply -target=aws_iam_policy.mypolicy # Usage -Creating a role. +Creating a role with one attached policy. ```hcl module "myrole2" { - source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" - role_name = "my-role2" - attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ] - contact_group_email = "group-email-address@census.gov" + source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" + role_name = "my-role2" + attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ] + contact_group_email = "group-email-address@census.gov" } ``` @@ -35,8 +35,7 @@ data "aws_iam_document_policy" "my-policy-1" { } module "myrole3" { - source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" - + source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" role_name = "my-role3" attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ] contact_group_email = "group-email-address@census.gov" diff --git a/rolesanywhere/main.tf b/rolesanywhere/main.tf index fb8369b..f4ba8ad 100644 --- a/rolesanywhere/main.tf +++ b/rolesanywhere/main.tf @@ -15,13 +15,13 @@ * * # Usage * -* Creating a role. +* Creating a role with one attached policy. * ```hcl * module "myrole2" { -* source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" -* role_name = "my-role2" -* attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ] -* contact_group_email = "group-email-address@census.gov" +* source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" +* role_name = "my-role2" +* attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ] +* contact_group_email = "group-email-address@census.gov" * } * ``` * @@ -35,8 +35,7 @@ * } * * module "myrole3" { -* source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" -* +* source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git" * role_name = "my-role3" * attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ] * contact_group_email = "group-email-address@census.gov"