So, you’re using AWS S3 to store your images. That makes sense. It also makes sense to use a Lambda function to create thumbnails of them on the fly. If you’re not doing this yet then you should be. It’s one of the classic use cases for AWS Lambda and there are loads of examples around for it including this one from AWS themselves. But, if you also use Cloud Front to serve the images how do you get it to trigger the image thumbnails?
In this post I describe how to use the Amazon Command Line Interface (CLI) to update Route 53 Hosted Zone entries. When you shutdown and start up an AWS instance it will be assigned a new IP address. Of course this is only when you actually shutdown the instance, just doing a restart will maintain the existing address. Unfortunately assigning a new IP address will mean that your Route 53 Hosted Zone will be pointing to an old address.
The third part of my AWS Primer covers the AWS Virtual Private Cloud (VPC) which is a key component of the platform. For anyone who’s planning to do the certification there are likely to be a lot of questions about it. When I was learning it I decided to draw myself a diagram covering all the different features. This actually ended up looking fairly similar to those included in the Amazon VPC Connectivity Options whitepaper which I took to mean that I was doing something right.
S3 is the Content Repository of AWS. Technically it’s called an Object Store but it amounts to the same thing. It’s a way of storing your files (objects) in a secure manner with encryption and version control. Below is a diagram with my notes on S3 and there’s a link to a PDF version as well below. PDF version: www.hamishbuchanan.com-S3_0.pdf
Below are my notes on the AWS service Route 53. Route 53 is the AWS DNS service. It’s named after port 53 which is the DNS port. Route 53 is not a regional service it is set up on the Global region only. It’s more commonly used for public domain names but can also be used for private names in VPCs. Before we get into the details of Route 53 it’s good to have a background in DNS.