• Purging CloudFront Caches

    I had a image uploaded that had some information I didn’t mean to post. I made the change but it was already cached in CloudFront. To remove it so it will pickup the updated image, I had to invalidate it (Web Distributions only). First I had to create a .json file with the path to the image in the bucket: { "Paths": { "Quantity": 2, "Items": [ "/YOUR/PATH/TO/THE/FILE/IN/S3.jpg", "/YOUR/OTHER/PATH/TO/THE/FILE/IN/S3/*" ] }, "CallerReference": "removing image with info" } Then run this command line with the CloudFront distribution id and the path to the .
  • Hugo Site Auto Generated by Lambda

    Description Static HTML site generated by Hugo site generator. When the content directory in S3 is changed, a Lambda function will trigger Hugo to update. Tools used in this project https://github.com/spf13/hugo/releases https://gohugo.io/ Amazon API Gateway, Lambda, S3, Route 53, CloudFront Prerequisites A domain name (example.com) Setup the Domain Name Route 53 Create Hosted Zone > Domain Name > Public Hosted Zone Add Name Servers to your registrar Create S3 Buckets example.