Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save arjunkori/5c5608f02fe8183c23f0930ed26b5510 to your computer and use it in GitHub Desktop.
Save arjunkori/5c5608f02fe8183c23f0930ed26b5510 to your computer and use it in GitHub Desktop.
AWS S3 Policy For Private Repository
# 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