jen20.dev
Recent content on jen20.dev
- Website
- jen20.dev · all feeds from this site
- Feed URL
https://jen20.dev/index.xml
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
A Nix Overlay for HashiCorp Tools
Infrastructure repositories tend to want an exact version of tools. It’s desirable that when I work on Terraform code on my laptop, I use the same version as will be used in production, and the same version that my colleagues use. While I like to use Nix Flakes for per-project…
-
A Pattern for Synchronization Primitives in Complex Go Structures
It’s common in Go to have a struct that contains many pieces of state, some of which need protecting by different synchronization primitives. For example, in HashiCorp’s Raft library, the Raft structure contains several such examples:
-
CfgMgmtCamp 2024 Slides
During FOSDEM of 2024, mere days before the kick-off of CfgMgmtCamp 2024 in Ghent, Apple released a language named Pkl as Apache 2.0 open source. As a heavy user of Pkl’s Apple-internal progenitor for four years at that point, I was well placed to give the first ever public talk…
-
Ubuntu 20.04 With Root ZFS in AWS
For several years now, I’ve been running all my AWS instances with a recent long-term support edition of Ubuntu server , ZFS as the root file system. Ubuntu 20.04 LTS was released today, so I’ve updated my Packer templates - the original inspiration for the amazon-ebssurrogate…
-
Completion of Generated Code in IntelliJ Rust
Recently, I’ve been doing a lot of work with Tonic , a Rust implementation of the gRPC protocol. Like many implementations of gRPC, Tonic generates code from the protocol buffers definitions at build time using the tonic-build crate in a Cargo build script, and by default puts…
-
CfgMgmtCamp 2020 - Slides
At CfgMgmtCamp 2020, I gave a talk entitled “Terraform Without The Mess”, in which we looked at how the history of features in Terraform affect the way we structure and write our Terraform configuration today, and make opinionated recommendations about how to structure modern…
-
Services in GitHub Actions
While the features of GitHub Actions have existed on various platforms - Travis CI , AppVeyor and more recently Azure DevOps - the overall lack of billing and user management friction combined with the ability to run workflows on Linux, macOS and Windows make Actions very…
-
HashiConf EU 2019 - CloudInit: The Good Parts
At the 2019 edition of HashiConf EU in Amsterdam, I gave a talk entitled “CloudInit: The Good Parts” - a surprisingly long talk given the subject matter! I’ve had a number of requests for the slide deck, which I’m posting here along with the video from the event.
-
Ubuntu 18.4 With Root ZFS on AWS
Last year, I posted about how to build Ubuntu 16.04 AMIs using HashiCorp Packer ’s ebs-surrogate builder. Since then Ubuntu 18.04 has been released, and the process has changed a little.
-
HashiDays Amsterdam 2018 - systemd: The Good Parts
At HashiDays Amsterdam 2018, I gave a talk entitled “systemd: The Good Parts”, in which I tried to focus on how to use systemd , aimed at practitioners who are committed to a Linux distribution which uses the controversial init system.
-
Windows AMIs With Even Fewer Tears
Some recent image building work I was doing required images based on Windows Server. One of my more popular posts, Windows AMIs Without the Tears , detailed the fraught endeavor of making the WinRM management system work for this purpose, but since then Microsoft have…
-
Building ZFS Root Ubuntu AMIs With Packer
For all applications of importance or significance, we recommend using ZFS . On bare metal servers, ZFS is king of the hill, but on AWS and Linux it is still gaining traction. Data integrity guarantees as well as features such as “instantaneous” snapshots, compression, quotas,…
-
Managing IAM Policies in HCL With Terraform
IAM Policy Documents are ubiquitous in AWS - they are used not only for standalone policies you might attach to users or roles, but also for S3 bucket policies, SNS topic policies and more. Unfortunately, the JSON syntax can be error prone to hand write, and the default…
-
Configuring AWS AutoScaling Event Notifications in Slack
One of the easiest ways of building resilience into a system running in AWS is to use an autoscaling group. Generally speaking, I use one for any service which is required to self-heal - even when aiming to maintain a steady number of instances, as is desirable when running…
-
Cloud-Init Configuration Merging
Part of the boot process for Linux instances across many cloud systems (including AWS and OpenStack) is the Cloud-Init system, part of the Ubuntu project. It describes itself as “the defacto multi-distribution package that handles early initialization of a cloud instance”. It…
-
User-level Git Exclusions
I recently adopted JetBrains IntelliJ IDEA IDE with the rapidly-improving Go plugin for working on Go code (of course using IdeaVim !). I’ll post more about using IntelliJ as an IDE for Go in future (it recently grew support for debugging using Delve), but the only downside for…
-
Windows AMIs Without The Tears
Twice in the last couple of weeks I’ve helped automate build infrastructure in AWS, first for Event Store and then secondly for another company. Both times we got 90% of the way there using great tools like Terraform and Packer , and fell at the last hurdle: how do you build…
-
Generating self-signed certificates with OpenSSL
I occasionally need to generate self-signed certificates using OpenSSL and convert them into a format that Windows can understand. I have to look this up every time, so I’m putting it here in order that I can look in a known place!
-
Reading .NET BinaryWriter serialized strings from Go
I recently had the need (for a side project) to be able to read a file written from a .NET application using the BinaryWriter class from an application written using Go. The MSDN documentation was somewhat vague on the format in which strings were written, but it turns out to be…
-
Event Sourcing in Go
As one of the contributors to Event Store , it should probably not be surprising that sooner or later I’m going to get around to figuring out nice patterns for implementing Event Sourcing in whatever languages I’m working in!