-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
limit the PCE's full s3 access to the deployed data bucket (#1743)
Summary: Pull Request resolved: #1743 For partner side deployments. For other usages it will still default to the current AmazonS3FullAccess arn for now. Reviewed By: ankushksingh, ajaybhargavb, anthonyzhang25 Differential Revision: D40406015 fbshipit-source-id: c9f91369fc9cd2e00b53667e4eb3927c756ade18
- Loading branch information
1 parent
da413e4
commit 43e5094
Showing
4 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
fbpcs/infra/cloud_bridge/deployment_helper/aws/iam_policies/fb_pc_data_bucket_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"s3:*" | ||
], | ||
"Resource": [ | ||
"arn:aws:s3:::${DATA_BUCKET_NAME}", | ||
"arn:aws:s3:::${DATA_BUCKET_NAME}/*" | ||
] | ||
}, | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"s3:Describe*", | ||
"s3:Get*", | ||
"s3:List*" | ||
], | ||
"Resource": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"Effect": "Deny", | ||
"Action": [ | ||
"s3:*" | ||
], | ||
"NotResource": [ | ||
"arn:aws:s3:::${DATA_BUCKET_NAME}", | ||
"arn:aws:s3:::${DATA_BUCKET_NAME}/*" | ||
], | ||
"Condition": { | ||
"StringEquals": { | ||
"s3:ResourceAccount": [ | ||
"${ACCOUNT_ID}" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters