Skip to content

Commit 318b884

Browse files
committed
[PRP-388] supply correct s3 arn to permissions
1 parent b313a18 commit 318b884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrastructure/step-function-migration-dynmodb.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data "aws_iam_policy_document" "sfn_permissions" {
3636
"s3:ListBucket"
3737
]
3838
resources = [
39-
module.migration-dynamodb-segment-lambda.s3_bucket_arn
39+
"arn:aws:s3:::${terraform.workspace}-${var.migration_dynamodb_segment_store_bucket_name}"
4040
]
4141
}
4242

@@ -48,7 +48,7 @@ data "aws_iam_policy_document" "sfn_permissions" {
4848
"s3:PutObject"
4949
]
5050
resources = [
51-
"${module.migration-dynamodb-segment-lambda.s3_bucket_arn}/*"
51+
"arn:aws:s3:::${terraform.workspace}-${var.migration_dynamodb_segment_store_bucket_name}/*"
5252
]
5353
}
5454

0 commit comments

Comments
 (0)