Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added an scp that allows creation of us buckets only
pcrum
committed
Aug 29, 2019
1 parent
77af301
commit b2de5cb
Showing
2 changed files
with
26 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
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,23 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "AllowOnlyUSBasedS3Buckets", | ||
"Effect": "Deny", | ||
"Action": [ | ||
"s3:CreateBucket" | ||
], | ||
"Resource": "arn:aws:s3:::*", | ||
"Condition": { | ||
"ForAnyValue:StringNotLike": { | ||
"s3:LocationConstraint": [ | ||
"us-east-1", | ||
"us-east-2", | ||
"us-west-1", | ||
"us-west-2" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |