Simon Willison: TILs on aws

aws Using boto3 from the command line - 2022-08-02

I found a useful pattern today for automating more complex AWS processes as pastable command line snippets, using Boto3. …

aws Running OCR against a PDF file with AWS Textract - 2022-06-28

Textract is the AWS OCR API. It's very good - I've fed it hand-written notes from the 1890s and it read them better than I could. …

aws Helper function for pagination using AWS boto3 - 2022-01-19

I noticed that a lot of my boto3 code in s3-credentials looked like this: …

aws Adding a CORS policy to an S3 bucket - 2022-01-04

Amazon S3 buckets that are configured to work as public websites can support CORS, allowing assets such as JavaScript modules to be loaded by JavaScript running on other domains. …

aws Recovering data from AWS Lightsail using EC2 - 2021-01-16

I ran into problems with my AWS Lightsail instance: it exceeded the CPU burst quota for too long and was suspended, and I couldn't figure out how to un-suspend it. …

aws Display EC2 instance costs per month - 2020-09-06

The EC2 pricing page shows cost per hour, which is pretty much useless. I want cost per month. The following JavaScript, pasted into the browser developer console, modifies the page to show cost-per-month instead. …