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 0d21cb4 commit 1b6f9cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module "myrole1" {
ldap_port = 389
}
```

Creating a non-SAML role
```hcl
module "myrole2" {
Expand All @@ -68,20 +69,7 @@ module "myrole2" {
role_name = "my-role2"
attached_policies = [ data.aws_iam_policy.aws-managed-readonlyaccess.arn ]
}
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

Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
* ldap_port = 389
* }
* ```
*
* Creating a non-SAML role
* ```hcl
* module "myrole2" {
Expand All @@ -69,6 +70,8 @@
* role_name = "my-role2"
* 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 1b6f9cf

Please sign in to comment.