Skip to content

Commit

Permalink
docs: Updated examples in README (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko authored Oct 30, 2020
1 parent c77256d commit 151356a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Terraform 0.11. Pin module version to `~> v1.0`. Submit pull-requests to `terraf
```hcl
module "iam_account" {
source = "terraform-aws-modules/iam/aws//modules/iam-account"
version = "~> 2.0"
version = "~> 3.0"
account_alias = "awesome-company"
Expand All @@ -41,8 +41,8 @@ module "iam_account" {
`iam-assumable-role`:
```hcl
module "iam_assumable_role" {
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role"
version = "~> 2.0"
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role"
version = "~> 3.0"
trusted_role_arns = [
"arn:aws:iam::307990089504:root",
Expand All @@ -58,14 +58,15 @@ module "iam_assumable_role" {
"arn:aws:iam::aws:policy/AmazonCognitoReadOnly",
"arn:aws:iam::aws:policy/AlexaForBusinessFullAccess",
]
number_of_custom_role_policy_arns = 2
}
```

`iam-assumable-role-with-oidc`:
```hcl
module "iam_assumable_role_with_oidc" {
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
version = "~> 2.0"
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
version = "~> 3.0"
create_role = true
Expand All @@ -80,14 +81,15 @@ module "iam_assumable_role_with_oidc" {
role_policy_arns = [
"arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
]
number_of_role_policy_arns = 1
}
```

`iam-assumable-roles`:
```hcl
module "iam_assumable_roles" {
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-roles"
version = "~> 2.0"
version = "~> 3.0"
trusted_role_arns = [
"arn:aws:iam::307990089504:root",
Expand All @@ -108,7 +110,7 @@ module "iam_assumable_roles" {
```hcl
module "iam_assumable_roles_with_saml" {
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-roles-with-saml"
version = "~> 2.0"
version = "~> 3.0"
create_admin_role = true
Expand All @@ -125,7 +127,7 @@ module "iam_assumable_roles_with_saml" {
```hcl
module "iam_user" {
source = "terraform-aws-modules/iam/aws//modules/iam-user"
version = "~> 2.0"
version = "~> 3.0"
name = "vasya.pupkin"
force_destroy = true
Expand All @@ -140,7 +142,7 @@ module "iam_user" {
```hcl
module "iam_policy" {
source = "terraform-aws-modules/iam/aws//modules/iam-policy"
version = "~> 2.0"
version = "~> 3.0"
name = "example"
path = "/"
Expand All @@ -167,7 +169,7 @@ EOF
```hcl
module "iam_group_with_assumable_roles_policy" {
source = "terraform-aws-modules/iam/aws//modules/iam-group-with-assumable-roles-policy"
version = "~> 2.0"
version = "~> 3.0"
name = "production-readonly"
Expand All @@ -186,7 +188,7 @@ module "iam_group_with_assumable_roles_policy" {
```hcl
module "iam_group_with_policies" {
source = "terraform-aws-modules/iam/aws//modules/iam-group-with-policies"
version = "~> 2.0"
version = "~> 3.0"
name = "superadmins"
Expand Down

0 comments on commit 151356a

Please sign in to comment.