Skip to content

Commit

Permalink
feat: Updated the module example to create iam instance profile and e…
Browse files Browse the repository at this point in the history
…xport the id to outputs
  • Loading branch information
msharma24 committed Sep 16, 2021
1 parent 20f3dfc commit a322480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/iam-assumable-role/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module "iam_assumable_role_admin" {
"codedeploy.amazonaws.com"
]

create_role = true
create_role = true
create_instance_profile = true

role_name = "admin"
role_requires_mfa = true
Expand Down
5 changes: 5 additions & 0 deletions examples/iam-assumable-role/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ output "role_requires_mfa" {
description = "Whether admin IAM role requires MFA"
value = module.iam_assumable_role_admin.role_requires_mfa
}

output "iam_instance_profile_id" {
description = "IAM Instance profile's ID."
value = module.iam_assumable_role_admin.iam_instance_profile_id
}

0 comments on commit a322480

Please sign in to comment.