Skip to content

Commit

Permalink
feat: Allow adding iss for the oidc assumable role
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisusername committed Dec 18, 2024
1 parent e20e0b9 commit fc65def
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/iam-assumable-role-with-oidc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ data "aws_iam_policy_document" "assume_role_with_oidc" {
}
}

condition {
test = "ForAllValues:StringEquals"
variable = "${statement.value}:iss"
values = ["https://${statement.value}"]
}

dynamic "condition" {
for_each = length(var.oidc_fully_qualified_audiences) > 0 ? local.urls : []

Expand Down

0 comments on commit fc65def

Please sign in to comment.