Skip to content

Commit

Permalink
Merge pull request #154 from NASA-IMPACT/downloader_permissions
Browse files Browse the repository at this point in the history
Modify bucket policy to include abort.
  • Loading branch information
sharkinsspatial authored Jul 8, 2021
2 parents a25c2b8 + 2df92b9 commit 421f5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
self.sentinel_input_bucket.bucket_arn,
f"{self.sentinel_input_bucket.bucket_arn}/*",
],
actions=["s3:PutObject", "s3:PutObjectAcl"],
actions=["s3:PutObject", "s3:Abort"],
principals=[aws_iam.ArnPrincipal(DOWNLOADER_FUNCTION_ARN)]
)
)
Expand Down

0 comments on commit 421f5aa

Please sign in to comment.