Skip to content

Commit

Permalink
Allow any service account to assume the role
Browse files Browse the repository at this point in the history
Allow any service account to assume the role.
  • Loading branch information
alex-hunt-materialize committed Dec 17, 2024
1 parent dc32a58 commit 627fae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ resource "aws_iam_role" "materialize_s3" {
Action = "sts:AssumeRoleWithWebIdentity"
Condition = {
StringEquals = {
"${trimprefix(module.eks.cluster_oidc_issuer_url, "https://")}:sub" : "${var.bucket_prefix}:serviceaccount:${var.namespace}:${var.service_account_name}",
"${trimprefix(module.eks.cluster_oidc_issuer_url, "https://")}:sub" : "system:serviceaccount:*:*",
"${trimprefix(module.eks.cluster_oidc_issuer_url, "https://")}:aud" : "sts.amazonaws.com"
}
}
Expand Down

0 comments on commit 627fae5

Please sign in to comment.