Skip to content

Commit

Permalink
updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 29, 2025
1 parent 991f0c4 commit d8ceda9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions rolesanywhere/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```

Expand All @@ -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"
Expand Down
13 changes: 6 additions & 7 deletions rolesanywhere/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
* }
* ```
*
Expand All @@ -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"
Expand Down

0 comments on commit d8ceda9

Please sign in to comment.