Riku Voipio | b138c6b | 2021-06-11 14:36:05 +0300 | [diff] [blame^] | 1 | resource "aws_iam_role_policy" "role_policy" { |
2 | role = var.role_id | ||||
3 | policy = templatefile(var.policy_file, { | ||||
4 | effect = var.effect | ||||
5 | actions = jsonencode(var.actions) | ||||
6 | resources = jsonencode(var.resources) | ||||
7 | } | ||||
8 | ) | ||||
9 | } |