Skip to content

Instantly share code, notes, and snippets.

View xitation's full-sized avatar

XiTatiON xitation

View GitHub Profile
@xitation
xitation / attach-elastic-network-interface.sh
Created May 16, 2018 03:01 — forked from amontalban/attach-elastic-network-interface.sh
Attach an ENI (Elastic Network Interface) to an instance
#!/usr/bin/env bash
# This script assigns Elastic Network Interface (ENI) passed as argument to current instance.
# The goal of this script is to attach an ENI to a single instance running in an ASG for example.
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
PROG_NAME=$(basename $0)
AWSCLI=$(which aws)
JQ=$(which jq)
@xitation
xitation / gist:dde1b81b00a7b7466458
Created April 13, 2015 00:30
S6znY1L03me61YB_#jfdnaj381h_
S6znY1L03me61YB_#jfdnaj381h_
S6znY1L03me61YB