Tag: AWS
-
How to Automatically Delete Old S3 Files Using Lifecycle Rules
Amazon Web Services block storage is still one of my go to backup solutions. My backups tend to be pretty small, so the cost is negligible. Over time though, the pennies start to add up. Once the cost gets to a couple of bucks, I go in and purge backups and the cycle begins anew.…
-
How to apply security updates on Amazon Linux 2 AMI
Security updates are important and should be applied regularly, even automated if that’s an option (it is on Debian, as part of unattended upgrades). Amazon Web Services (AWS) offers their own Linux distribution, that is, and I quote “largely binary compatible” with Red Hat Enterprise Linux. Something I’ve learned about…
-
How to start an AWS CodePipeline
While not a difficult task to pull off, starting a pipeline in the AWS Console for CodePipeline does tend to be a confusing thing when somebody has never done it before. The reason for this is the naming of the action. The AWS Console doesn’t have a big shiny “Start”…
-
Using multiple profiles with aws-cli
One of the best aspects of Amazon Web Services (AWS) is that a full featured command-line utility exists for it. If you’ve ever spent a decent amount of time in the AWS Console (their web interface) then you understand why this is a good thing. As you venture into better…
-
Using paths to create hierarchies in Parameter Store
Parameter Store only supports a limited number of character for the parameter name. As per the error message you’re presented with, Only a mix of letters, numbers and the following 3 symbols .-_ are allowed. What that error fails to mention is that you can actually use a fourth symbol,…
-
Getting String and SecureString Parameter Store parameters with Node.js
Parameter Store has slowly become one of my favorite things about AWS. It makes it easy to share things between ECS tasks and services, and Lambdas. The parameters can be references inside of a CodeBuild buildspec file, and it’s all language agnostic, which is handy if you are running different…
-
Decrypting SecureString Parameter Store parameters with Node.js
Parameter Store, part of AWS Systems Manager gives you a quick and easy way to store parameters that you’d like to use in your applications. By selecting the SecureString type, you get the added bonus of encryption for you most secret parameters. By default, when you fetch a SecureString type…
-
How to restart an AWS ECS service
Docker containers are easily one of my favorite pieces of new technology of the last decade. They’ve immensely simplified how I work locally, no more virtual machines, no more trying to keep my local development environment and production servers in parity, and no need for command-line sloths like nvm. They’ve…
-
Debugging an AWS Lambda that stopped working
My wife and seed would agree that talking about AWS Lambdas are in my “big three” of things to not shut up about, along with fishing and professional wrestling. Regardless, I do love them so (both the Lambdas and the fam bam). As I’ve grown to use them more and…
-
How to kill a query on Amazon Relational Database Service (RDS)
Coming from MySQL / MariaDB, I was surprised that I couldn’t kill a query on an Amazon’s Relational Database Service or Amazon Aurora with the kill command. Fortunately, the functionality isn’t omitted, it’ just buried under some AWS RDS specific command. Before we go over that, let’s go over how…