Skip to content

chuboe/aws-static-site-configurator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

aws-static-site-configurator

The purpose of this project is to make creating aws s3 static sites via the cli easy.

Details and Assumptions

  • This assumes you already have the aws cli downloaded.
  • This assumes you have an IAM that can create s3 buckets (example: AmazonS3FullAccess).
  • This assumes you have configured your local aws cli to use the IAM credentials with either the default or a named profile.
  • This script assumes you are happy using the native aws-s3 url: (example: https://some-bucket-name-01.s3.amazonaws.com/...)

Getting Started

  • Update the src/web.properties with the proper details
  • Run src/creates3site.sh to create the bucket and push the initial content
  • Run src/syncs3site.sh to push incremental content

Credit

Example IAM Policy to Allow Writing

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObjectAcl",
                "s3:GetObject",
                "s3:ListBucketMultipartUploads",
                "s3:GetObjectRetention",
                "s3:ListBucketVersions",
                "s3:GetObjectTagging",
                "s3:ListBucket",
                "s3:GetObjectLegalHold",
                "s3:ListMultipartUploadParts",
                "s3:DeleteObject"
            ],
            "Resource": [
                "arn:aws:s3:::some-bucket-name-01",
                "arn:aws:s3:::some-bucket-name-01/*"
            ]
        }
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published