Skip to content

Commit b50b3f2

Browse files
committed
skip dynamodb perms if step functions are disabled
1 parent c956521 commit b50b3f2

File tree

1 file changed

+1
-0
lines changed
  • aws/terraform/modules/metaflow

1 file changed

+1
-0
lines changed

aws/terraform/modules/metaflow/iam.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ resource "aws_iam_role_policy" "grant_iam_pass_role" {
245245
}
246246

247247
resource "aws_iam_role_policy" "grant_dynamodb" {
248+
count = var.enable_step_functions ? 1 : 0
248249
name = "dynamodb"
249250
role = aws_iam_role.batch_s3_task_role.name
250251
policy = data.aws_iam_policy_document.dynamodb.json

0 commit comments

Comments
 (0)