File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,15 @@ data "aws_iam_policy_document" "node_assume_role" {
289289 type = " Service"
290290 identifiers = [" ec2.${ local . dns_suffix } " ]
291291 }
292+
293+ dynamic "condition" {
294+ for_each = var. iam_role_conditions
295+ content {
296+ test = condition. value . test
297+ variable = condition. value . variable
298+ values = condition. value . values
299+ }
300+ }
292301 }
293302}
294303
Original file line number Diff line number Diff line change @@ -65,10 +65,11 @@ variable "iam_role_permissions_boundary_arn" {
6565variable "iam_role_conditions" {
6666 description = " Additional conditions of the IAM role assume policy"
6767 type = list (object ({
68- test = string
69- variable = string
70- values = list (string )
68+ test = string
69+ variable = string
70+ values = list (string )
7171 }))
72+ default = []
7273}
7374
7475variable "iam_role_tags" {
You can’t perform that action at this time.
0 commit comments