Skip to content

Commit 151356a

Browse files
authored
docs: Updated examples in README (#105)
1 parent c77256d commit 151356a

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Terraform 0.11. Pin module version to `~> v1.0`. Submit pull-requests to `terraf
2929
```hcl
3030
module "iam_account" {
3131
source = "terraform-aws-modules/iam/aws//modules/iam-account"
32-
version = "~> 2.0"
32+
version = "~> 3.0"
3333
3434
account_alias = "awesome-company"
3535
@@ -41,8 +41,8 @@ module "iam_account" {
4141
`iam-assumable-role`:
4242
```hcl
4343
module "iam_assumable_role" {
44-
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role"
45-
version = "~> 2.0"
44+
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role"
45+
version = "~> 3.0"
4646
4747
trusted_role_arns = [
4848
"arn:aws:iam::307990089504:root",
@@ -58,14 +58,15 @@ module "iam_assumable_role" {
5858
"arn:aws:iam::aws:policy/AmazonCognitoReadOnly",
5959
"arn:aws:iam::aws:policy/AlexaForBusinessFullAccess",
6060
]
61+
number_of_custom_role_policy_arns = 2
6162
}
6263
```
6364

6465
`iam-assumable-role-with-oidc`:
6566
```hcl
6667
module "iam_assumable_role_with_oidc" {
67-
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
68-
version = "~> 2.0"
68+
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
69+
version = "~> 3.0"
6970
7071
create_role = true
7172
@@ -80,14 +81,15 @@ module "iam_assumable_role_with_oidc" {
8081
role_policy_arns = [
8182
"arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
8283
]
84+
number_of_role_policy_arns = 1
8385
}
8486
```
8587

8688
`iam-assumable-roles`:
8789
```hcl
8890
module "iam_assumable_roles" {
8991
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-roles"
90-
version = "~> 2.0"
92+
version = "~> 3.0"
9193
9294
trusted_role_arns = [
9395
"arn:aws:iam::307990089504:root",
@@ -108,7 +110,7 @@ module "iam_assumable_roles" {
108110
```hcl
109111
module "iam_assumable_roles_with_saml" {
110112
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-roles-with-saml"
111-
version = "~> 2.0"
113+
version = "~> 3.0"
112114
113115
create_admin_role = true
114116
@@ -125,7 +127,7 @@ module "iam_assumable_roles_with_saml" {
125127
```hcl
126128
module "iam_user" {
127129
source = "terraform-aws-modules/iam/aws//modules/iam-user"
128-
version = "~> 2.0"
130+
version = "~> 3.0"
129131
130132
name = "vasya.pupkin"
131133
force_destroy = true
@@ -140,7 +142,7 @@ module "iam_user" {
140142
```hcl
141143
module "iam_policy" {
142144
source = "terraform-aws-modules/iam/aws//modules/iam-policy"
143-
version = "~> 2.0"
145+
version = "~> 3.0"
144146
145147
name = "example"
146148
path = "/"
@@ -167,7 +169,7 @@ EOF
167169
```hcl
168170
module "iam_group_with_assumable_roles_policy" {
169171
source = "terraform-aws-modules/iam/aws//modules/iam-group-with-assumable-roles-policy"
170-
version = "~> 2.0"
172+
version = "~> 3.0"
171173
172174
name = "production-readonly"
173175
@@ -186,7 +188,7 @@ module "iam_group_with_assumable_roles_policy" {
186188
```hcl
187189
module "iam_group_with_policies" {
188190
source = "terraform-aws-modules/iam/aws//modules/iam-group-with-policies"
189-
version = "~> 2.0"
191+
version = "~> 3.0"
190192
191193
name = "superadmins"
192194

0 commit comments

Comments
 (0)