Quick AWS 2 - S3
Posted on October 2, 2021
Tags: aws
- Files are Objects which are grouped as Buckets
- Bucket Objects can be
index.html
lib.js
etc allowing static site hosting.- Select “testBucket” >> Properties >> Static webwite Hosting
1 Security
- Bucket Settings (Block all request default)
- Bucket Policy (None by default)
1.1 Bucket Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::testsitenew/*"
}
]
}
- Principal is who this rule applies to, Root, Users, etc..
- Resource is
arn:aws:s3:::{BUCKET}/{OBJECT}