Created
May 4, 2022 10:17
-
-
Save arjunkori/5c5608f02fe8183c23f0930ed26b5510 to your computer and use it in GitHub Desktop.
AWS S3 Policy For Private Repository
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
# REACT Project AWS s3 Hosting | |
# Provate S3 Bucket | |
S3 Policy | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": [ | |
"s3:GetObject", | |
"s3:PutObject", | |
"s3:PutObjectAcl" | |
], | |
"Resource": "arn:aws:s3:::bucket_name/*", | |
"Condition": { | |
"IpAddress": { | |
"aws:SourceIp": [ | |
"103.59.212.254/32", | |
"14.143.167.58/32", | |
"125.99.51.206/32", | |
"202.59.244.10/32", | |
"103.17.18.10/32", | |
"103.26.58.90/32" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment