Category: Public Cloud + Databases

02 Nov 2023 Databases 👁 32 views

SQL Server Missing Indexes: Query DMVs to Find Them

Most companies will have a fair amount of SQL databases and its likely that most of those databases are performing sub-optimally due to missing indexes. We can debate (for a long time) the pros and cons of indexes, but the undeniable reality is that having missing indexes on large tables create a lot of issues […]

Read more →
09 Oct 2023 Public Cloud 👁 18 views

Mirror a Static Website with wget and Host on AWS S3

I have an old website that I want to avoid the hosting costs and so just wanted to download the website and run it from an AWS S3 bucket using Cloud Front to publish the content. Below are the steps I took to do this: First download the website to your laptop Below is a […]

Read more →
28 Aug 2023 Macbooks 👁 48 views

AWS CLI Setup on Mac: Install and Configure in Minutes

You can absolutely get the following from the AWS help pages; but this is the lazy way to get everything you need for a simple single account setup. Run the two commands below to drop the package on your Mac. Then check the versions you have installed: Next you need to setup your environment. Note: […]

Read more →
24 Aug 2023 Public Cloud 👁 40 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 Open Source 👁 15 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 Cyber 👁 26 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 Databases 👁 31 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 Public Cloud 👁 35 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 Public Cloud 👁 24 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 Public Cloud 👁 29 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 →
1345