Skip to content

Commit

Permalink
Added description support for custom group policies using a lookup (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
mogaal authored and antonbabenko committed Aug 21, 2019
1 parent 2f263e6 commit 5cb8959
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/iam-group-with-policies/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ resource "aws_iam_policy" "iam_self_management" {
resource "aws_iam_policy" "custom" {
count = length(var.custom_group_policies) > 0 ? length(var.custom_group_policies) : 0

name = var.custom_group_policies[count.index]["name"]
policy = var.custom_group_policies[count.index]["policy"]
name = var.custom_group_policies[count.index]["name"]
policy = var.custom_group_policies[count.index]["policy"]
description = lookup(var.custom_group_policies[count.index], "description", null)
}

0 comments on commit 5cb8959

Please sign in to comment.