Tag: AWS
-
Migrating from aws ecr get-login to aws ecr get-login-password
I’m not entirely sure when the change happens, but recently as I was upgrading AWS CodeBuilds to use a newer version of Ubuntu, I ran into some problems with aws ecr get-login. Without making any code changes, my build started to fail with the following: [Container] 2021/06/21 20:44:19 Running command…
-
Delete all files in an S3 bucket
Last year I had sunset a project that was using both AWS’ S3 and Linode’s S3-compatible object storage offering. After pulling down some final snapshots, I wanted to delete the buckets on both services. Similar to the error you receive when you attempt to rmdir a directory with files in…
-
How to loop through all files in an S3 bucket in PHP
Recently I decided to finally tackle the ever growing S3 bucket for the niche social network I run. The reason it’s ever growing is because I never implemented any sort of hard deletion logic. At one point, I was planning to move the images over to soft deletions, but never…
-
Trigger a GitHub Pages rebuild with AWS Lambda and CloudWatch
GitHub Pages is pretty damn great. I’ve been using it for years now but one thing has always bugged me. If you want to schedule your posts in advance, they just never show up. Why? Because for posts to show up you have to trigger a rebuild of the project…
-
Using S3 to host images on a budget
I love Amazon Web Services (AWS) but am always apprehensive about the pricing. To be fair, I probably over analyze my needs and I end up not pulling the trigger on using them. One thing I do rely on is Simple Storage Service (S3) for storing image uploads from my…