Skip to content

Instantly share code, notes, and snippets.

@ryan0x44
ryan0x44 / Terraform-Blue-Green-AWS.md
Created November 19, 2015 21:57
Blue-Green AWS Auto Scaling Deployments with Terraform

A quick note on how I'm currently handling Blue/Green or A/B deployments with Terraform and AWS EC2 Auto Scaling.

In my particular use case, I want to be able to inspect an AMI deployment manually before disabling the previous deployment.

Hopefully someone finds this useful, and if you have and feedback please leave a comment or email me.

Overview

I build my AMI's using Packer and Ansible.

@pahud
pahud / fh-putrecord.js
Last active August 17, 2021 18:05
AWS Firehose putRecord with Lambda
console.log('starting lambda')
var AWS = require("aws-sdk");
AWS.config.update({region: 'us-west-2' });
var fh = new AWS.Firehose();
exports.handler = function(event, context){
fh.putRecord(