Skip to content

Instantly share code, notes, and snippets.

@specialorange
specialorange / ec2-host-from-tag-to-env-vars.sh
Last active September 8, 2018 21:08 — forked from marcellodesales/ec2-host-from-tag-to-env-vars.sh
Create Environment Variables in EC2 Hosts from EC2 Host Tags, just like Beanstalk or Heroku does!
######
# Author: Chris Frisina from Marcello de Sales (marcello.desales@gmail.com)
# Description: Create Environment Variables in EC2 Hosts from EC2 Host Tags
#
### Requirements:
#
### Installation:
# * Add the Policy EC2:DescribeTags to a User (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policies-ec2-console.html)
# * aws configure
# * Source it to the user's ~/.profile that has permissions