Wednesday, July 12, 2017

Terraform G Suite DNS records

In the previous post I cited automation potential as one of the reasons to change registrars. While it’s a pretty strong reason for cloud admins, it might be a bit obscure for others…

Back in the day Google offered free edition of G Suite (Google Apps for Domain). As I acquired domains and corresponding free G Suite licenses, each required creation of various DNS records for integration. These days G Suite is not free, but plenty of organisations use it and must go through the same process. IaC is a passion of mine, so I decided to hone my Terraform skills and write a module for creation and management of G Suite DNS records. For now this module relies on Cloudflare and their free DNS hosting, in the future I might add support for other DNS hosting services like Route 53.

Sunday, July 2, 2017

Why transfer domains from NameCheap to Route 53

TL;DR: it’s cheaper if you want WhoisGuard and use Route 53 as registrar only. Longer answer with caveats and additional justifications below.

Monday, April 3, 2017

Rebuild AMI using SSM Automation

In the previous post I used Packer to remove block device mappings from Ubuntu AMI to ensure EC2 auto-recovery is working. While Packer is a fantastic tool with many features, it is synchronous in its nature and requires active SSH connection to the temporary instance in order to bake new AMI.

Can we get similar results with AWS tools alone? Indeed, we can!

In December of 2016, at the re:Invent, AWS announced a slew of interesting new features for their Amazon EC2 Systems Manager (a.k.a. SSM). The initial documentation and tutorials were sparse, so their capabilities weren't immediately clear. One of these new features, Automation, offers functionality similar to Packer, so I decided to learn more about it by applying to my simple use case.

Monday, March 20, 2017

Ensure EC2 auto-recovery by rebuilding AMI with Packer

Problem: Amazon EC2 auto recovery fails if machine image has ephemeral block device mappings defined (even when no instance store volumes are attached).

  1. Specify custom block device mapping during instance launch.
  2. Rebuild Ubuntu AMI (with automation).
This post shows how to achieve the later using Packer by HashiCorp.

Thursday, February 19, 2015

Enable "Developer options" on Android

Since release of Android 4.2 the "Developer options" menu is not visible in the Settings by default. Regular users won't miss it, but for those of us who like to tinker with ADB and need the "USB debugging" option enabled, here's how to get it back:
  1. Go to the "Settings" menu.
  2. Scroll to the bottom and tap "About phone" menu.
  3. Scroll to the bottom and tap on "Build number" seven (7) times.
After this your "Developer options" should be back in the "Settings" menu and you be able to start voiding your warrantee like a hacker. "You are now a developer!"