Skip to content

Instantly share code, notes, and snippets.

@AndrewVos
Created February 27, 2014 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewVos/9251799 to your computer and use it in GitHub Desktop.
Save AndrewVos/9251799 to your computer and use it in GitHub Desktop.
if [ -n "$AWS_ACCESS_KEY" && -n "$AWS_SECRET_KEY" ]; then
echo cloud.aws.access_key: $AWS_ACCESS_KEY >> $YML
echo cloud.aws.secret_key: $AWS_SECRET_KEY >> $YML
if [ -n "$AWS_REGION" ]; then
echo cloud.aws.region: $AWS_REGION >> $YML
fi
echo discovery.type: ec2 >> $YML
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment