• 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 .
  • Receiving smylee.com emails using AWS SES

    I setup email receiving for patty at smylee.com using Amazon SES. During this project I learned that in order to decrypt messaging using SES built-in encryption, you must decrypt using an Encryption Client available only in AWS SDK for Java and Ruby. http://docs.aws.amazon.com/kms/latest/developerguide/services-ses.html#services-ses-decrypt Because of this restriction, in this code, during the s3 event message to sqs phase, the lambda function encrypts the file at rest and removes the original.
  • Updated Hugo Site Automation Generator

    I’ve decided to finally go back and revamp my original hugo setup which can be found in the Hugo Site Auto Generated by Lambda post. The issue with that previous setup was if I had multiple posts (markdown files), the S3 event would trigger the lambda function as many times as the number of files uploaded, when I only needed it to run once after all were uploaded. My new plan was to publish the markdowns to github and have a lambda function trigger to pull the files and put into S3.