pip install virtualenvwrapper
mkvirtualenv tfe2tfvars
workon tfe2tfvars
pip install -r requirements.txt
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
#!/bin/bash | |
. /etc/bashrc | |
# EC2 Metadata | |
export REGION=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document/ | jq .region -r) | |
export INSTANCEID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id) | |
# Get all tags in one call | |
ec2-describe-tags --filter "resource-type=instance" --filter "resource-id=$(ec2-metadata -i | cut -d ' ' -f2)" | cut -f 4,5 > /tmp/ec2_tags |
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
#!/bin/bash | |
# | |
# check-codedeploy check-codedeploy shipper | |
# | |
# chkconfig: 2345 98 02 | |
# description: Starts and stops a single check-codedeploy instance on this system | |
# | |
### BEGIN INIT INFO | |
# Provides: check-codedeploy |