This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |