Static website hosting

Hosting a static website from an S3 bucket

Introduction Hosting a static website on AWS provides a scalable and cost-effective solution with high availability. In this guide, we’ll walk through the entire process, from setting up an S3 bucket to configuring CloudFront for CDN and HTTPS with a custom domain, and finally, integrating a CICD pipeline using GitHub Actions. Step 1: Create an S3 Bucket Navigate to the S3 service in the AWS Management Console and click on “Create bucket” and enter a unique bucket name (all S3 buckets across all accounts must have a unique name, so you may need to try a few names before you find one that’s not taken)....

26 July 2024 · 10 min · Toby Scott
GitHub

Authenticating Git and GitHub CLI over SSH

Prerequisites Install GitHub CLI if you haven’t already brew install gh Check that you are logged out. gh auth status You are not logged into any GitHub hosts. Run gh auth login to authenticate. If you’re still logged in, logout. gh auth status github.com ✓ Logged in to github.com as tobyscott25 (keyring) ✓ Git operations for github.com configured to use https protocol. ✓ Token: gho_************************************ ✓ Token scopes: gist, read:org, repo, workflow gh auth logout ✓ Logged out of github....

8 January 2024 · 4 min · Toby Scott
Encryption

Signing your commits with GPG (GNU Privacy Guard)

1. Pre-requisites Install GPG and PINEntry if not already installed Linux For Linux, install via your distro’s package manager. Mac For Mac, install via Homebrew: brew install gpg pinentry-mac Then to set pinentry-mac as your GPG PIN entry program, create ~/.gnupg/gpg-agent.conf if it doesn’t exist, and add the following line to it: pinentry-program /opt/homebrew/bin/pinentry-mac Windows For Windows, it is highly recommended that you use WSL and follow this guide within your Linux subsystem (including using the Linux distro’s package manager to install GPG)....

18 April 2022 · 6 min · Toby Scott