Set up static website hosting with SSL/TLS on S3 and Cloudflare

One of the popular ways of serving S3 web hosting with SSL/TLS is to use CloudFront Distributions. Cloudflare is another great choice as it is free and offers a lot of features. That’s what we are going to use today. It allows HTTPS traffic in between the clients and the Cloudflare network. Requirements: Have a valid non-expired domain (skip this if you already own a domain) Enable public access on S3 permissions and config bucket policy Enable version control and static website hosting on S3 Change to Cloudflare’s name server on the domain registrar Add DNS records and config SSL/TLS on Cloudflare Have a valid non-expired domain (skip this if you already own a domain) It’s not important which registrar you buy your domain, as long as the domain is still valid....

April 9, 2022 · 6 min · Lawrence Chan

RHCSA Series E02 - File Management

This post does not intend to provide comprehensive information on how to pass the certification, but serves as study notes on better understanding Linux system. Common File Types: RHEL supports seven types of files: regular, directory, block special device, character special device, symbolic link, named pipe, and socket. Linux does not require file extension, though it’s still a good idea to add the extension for readiability. To identify the file type of a file, the command file and stat can be used:...

August 21, 2020 · 3 min · Lawrence Chan

RHCSA Series E01 - Linux File System

This post does not intend to provide comprehensive information on how to pass the certification, but serves as study notes on better understanding Linux system. Even though I have used Linux for quite sometimes now, I never systematically learn how its components works. One of the issues that I often run into is that I don’t know where are the files, say I want to look at the log of the web services, I don’t know where they’re and I’ve to look it up on the internet....

August 2, 2020 · 2 min · Lawrence Chan

Install Zabbix with Docker(with Agents available)

Zabbix is an open source network monitoring tool. It supports not only network devices, but also servers (Linux and windows), java application, virtual machine, and even cloud services! In this tutorial, I’ll walk through how to install Zabbix with docker step by step. Zabbix actually provides a lot of ways to install it - images on all the major cloud platform and virtual machines! But docker is lightweight and it fits my use case as I’m not installing it on cloud this time....

July 31, 2020 · 3 min · Lawrence Chan

Amazing DevOps Infrastructure Pipeline implemented in HK01

This year AWS Summit Hong Kong 2020 is held virtually due to the current pandemic. Nevertheless, it’s equally exciting because there are lots of great talks. The most memorable one for me is the one delivered by Dick Tang, Director of DevOps at HK01, with AWS solution architect Peter Chan. During the talk, Mr. Tang walked us through the cloud infrastructure of his current organization. He provides an amazing high-level view of how different tools interact with each other to breach the conventional barrier of Devs and Ops to deliver products more gracefully and efficient....

July 8, 2020 · 2 min · Lawrence Chan