Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 17, 2021
1 parent 1b6f9cf commit 41b5cbd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,22 @@ module "myrole2" {
}
```

Creating a non-SAML role with inline policies
```hcl
module "myrole3" {
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 ]
inline_policies = [
{
name = "my-policy-1"
policy = data.aws_iam_policy_documennt.my-policy-1.json
}
]
}
```

## Requirements

No requirements.
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
* attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ]
* }
* ```
*
* Creating a non-SAML role with inline policies
* ```hcl
* module "myrole3" {
Expand Down

0 comments on commit 41b5cbd

Please sign in to comment.