Skip to content

Instantly share code, notes, and snippets.

View dshamanthreddy's full-sized avatar
🎯
Focusing

shamanth reddy dshamanthreddy

🎯
Focusing
View GitHub Profile

Create an AMI using Packer

What is Packer?

Packer is a tool from Hashicorp that allows you to create machine images in a variety of formats from a single spec file. This can be a very powerful thing when you want to automate the deployment of applications to a variety (or even just more than one, really) platforms.

In our case, we want to deploy an application to VMware and AWS, and soon to Docker. Doing that with a single spec file gives us

  • platforms that are consistent, even if they're different
{
// The standard ECS options, place in your own values:
"cluster": "",
"serviceName": "my-side-car-container",
"taskDefinition": "",
"role": "",
// desireCount should be greater than the number of instances that are in the ECS cluster.
"desiredCount": 1000,
@vik-y
vik-y / bash-cheatsheet.sh
Last active March 3, 2023 00:13 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04