Commit 5cb89591 authored by Alejandro Garrido Mota's avatar Alejandro Garrido Mota Committed by Anton Babenko

Added description support for custom group policies using a lookup (#33)

parent 2f263e69
......@@ -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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment