Skip to content

Commit d97be80

Browse files
authored
VED-355: Fix permissions for creating MESH S3 bucket event notification. (#654)
* VED-355: Fix permissions for creating MESH S3 bucket event notification. * VED-355: Add index.
1 parent 890ead7 commit d97be80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/mesh_processor.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ resource "aws_lambda_permission" "mesh_s3_invoke_permission" {
229229
action = "lambda:InvokeFunction"
230230
function_name = aws_lambda_function.mesh_file_converter_lambda[0].function_name
231231
principal = "s3.amazonaws.com"
232-
source_arn = "arn:aws:s3:::local-immunisation-mesh"
232+
source_arn = data.aws_s3_bucket.mesh[0].arn
233233
}
234234

235235
resource "aws_s3_bucket_notification" "mesh_datasources_lambda_notification" {

0 commit comments

Comments
 (0)