Michael Blum

Developer from Chicago

Deploying a Redis instance with Ansible September 24, 2016

Road Map I wanted to automate the tedious and error-prone process of creating a Redis instance that I could reuse when going between my laptop and a remote serer. I settled on writing an Ansible playbook for deploying a secured and optimized Redis instance. Based originally on DigitalOcean’s guide to deploying a Redis instance: How to install and configure redis on Ubuntu 16.04 This playbook looks to automate the tedious setup process by performing the following tasks:

Deploying AWS Lambda functions July 24, 2016

Why? One would imagine that we could compile our Python, Node, or Java projects into a ZIP file and upload them to AWSm Lambda without issue. Unfortunantly AWS Lambda’s execution environment stipulates everything should be compiled in the runtime environment. Makes sense - compile under the same criteria you’re running under. When I did this manually my workflow was: Create an Amazon Linux instance Install git Commit code SSH into EC2 instance and do a git pull master Run a shell script to package my Python code and deploy it to AWS Lambda Pretty manual process - and I totally forgot to turn off my ‘build’ EC2 instance - accruing some charges for idling.

Getting started with Chef April 26, 2016

Getting Started To begin, install Chef’s omnibus installer: Chef DK Chef uses the chef tool for creating cookbooks, downloading cookbooks, and many other things. chef generate repo chef-repo This creates a chef-repo for connecting to Chef Server. While this is great for getting started with Chef, creating cookbooks and keeping them in version control gets weird, since this is a single repo. Cookbooks Chef Cookbooks are composed of recipes written in Ruby plus a Chef Ruby sugar for automating installing an application like Redis, Postgres, Solr, etc.