( open sourced it because why not! )
See the live site here! aandkwedding.co.uk
This project was built with React, TypeScript & Vite.
This project is setup to deploy to AWS S3 with a CloudFront distribution.
Workflow taken from:
https://github.com/Reggionick/s3-deploy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowS3BucketManipulation",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:ListMultipartUploadParts",
"s3:AbortMultipartUpload",
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::<bucket name>/*"
},
{
"Sid": "AllowS3BucketListing",
"Effect": "Allow",
"Action": ["s3:ListBucket"],
"Resource": "arn:aws:s3:::<bucket name>"
},
{
"Sid": "CFInvalidation",
"Effect": "Allow",
"Action": "cloudfront:CreateInvalidation",
"Resource": "arn:aws:cloudfront::<AWS account ID>:distribution/<CF distribution ID>"
}
]
}