The purpose of this project is to make creating aws s3 static sites via the cli easy.
- 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/...)
- 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
{
"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/*"
]
}
]
}