Category: AWS Cloud

24 Aug 2023 AWS Cloud 👁 27 views

Auto Stop and Start EC2 Instances with Lambda

Below is a quick (am busy) outline on how to automatically stop and start your EC2 instances. Step 1: Tag your resources In order to decide which instances stop and start you first need to add an auto-start-stop: Yes tag to all the instances you want to be affected by the start / stop functions. Note: You […]

Read more →
21 Nov 2022 AWS Cloud 👁 13 views

Auto-Renew Let’s Encrypt Certs on Linux with Cron

If you want to automatically renew your certs then the easiest way is to setup a cron just to call letsencrypt periodically. Below is an example cron job: First create the bash script to renew the certificate Now enter the script in the following format into nano: Now edit the crontab to run the renew […]

Read more →
20 Oct 2022 AWS Cloud 👁 22 views

SCP Files to EC2: Mac & Linux Command Guide

I always forget the syntax of SCP and so this is a short article with a simple example of how to SCP a file from your laptop to your EC2 instance and how to copy it back from EC2 to your laptop: Copying from Laptop to EC2 scp -i identity_file.pem source_file.extention username@public_ipv4_dns:/remote_path scp: Secure copy protocol-i: Identity […]

Read more →
26 Aug 2022 AWS Cloud 👁 23 views

How to Backup MySQL on Bitnami WordPress to S3

I recently managed to explode my wordpress site (whilst trying to upgrade PHP). Anyway, luckily I had created an AMI a month ago – but I had written a few articles since then and so wanted to avoid rewriting them. So below is a method to create a backup of your wordpress mysql database to […]

Read more →
23 May 2022 AWS Cloud 👁 21 views

How to Trigger Autoscaling Events with stress-ng Command

If you are testing how your autoscaling policies respond to CPU load then a really simple way to test this is using the “stress” command. Note: this is a very crude mechanism to test and wherever possible you should try and generate synthetic application load.

Read more →
22 Sep 2021 AWS Cloud 👁 12 views

How to Scale Cloud Consumption Without Costly Mistakes

Introduction This article follows on from the “Cloud Migrations Crusade” blog post… A single tenancy datacenter is a fixed scale, fixed price service on a closed network. The costs of the resources in the datacenter are divided up and shared out to the enterprise constituents on a semi-random basis. If anyone uses less resources than […]

Read more →
23 Mar 2021 AWS Cloud 👁 22 views

AWS S3 ETags: Verify File Integrity Using MD5 Hashes

I was playing with S3 the other day an I noticed that a file which I had uploaded twice, in two different locations had an identical ETag. This immediately made me think that this tag was some kind of hash. So I had a quick look AWS documentation and this ETag turns out to be […]

Read more →
15 Mar 2021 AWS Cloud 👁 21 views

TPC-H Test Data for AWS Redshift and EMR: Setup Guide

If you need to test out your big data tools below is a useful set of scripts that I have used in the past for aws emr and redshift the below might be helpful:

Read more →
10 Mar 2021 AWS Cloud 👁 31 views

SSH EC2-User Login Fix for WordPress Bitnami Instances

So after getting frustrated (and even recreating my ec2 instances) due to a “Permission denied (publickey)”, I finally released that the worpress builds by default as set up for SSH using the bitnami account (or at least my build was). This means each time I login using ec2-user I get: Being a limited human being, […]

Read more →
04 Mar 2021 AWS Cloud 👁 19 views

AWS Error Messages, API Standards & Region Defaults: Fix Needed

This is a short blog, and its actually just simple a plea to AWS. Please can you do three things? North Virginia appears to be the AWS master node. Having this region as a master region causes a large number of support issues (for example S3, KMS, Cloudfront, ACM all use this pet region and […]

Read more →
1234