Skip to content

MinhHungTrinh/aws-basis-static-web-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

  • Create Bucket
  • Remove permission: Disabled with Block all public access, Public Access withACL
  • Upload source html to root folder of s3, make public
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::buckket-name/*"
        }
    ]
}
  • Enable Static Website in S3 (property) (Optional) Redirect config rule:
[
    {
        "Condition": {
            "KeyPrefixEquals": "docs/"
        },
        "Redirect": {
            "ReplaceKeyPrefixWith": "documents/"
        }
    }
]
  • Create Distribution (Cloudfront), point to S3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages