Skip to content

Instantly share code, notes, and snippets.

@ttrahan
Last active October 26, 2016 22:23
Show Gist options
  • Save ttrahan/a21af15a6bae537b0db63a963caf09cd to your computer and use it in GitHub Desktop.
Save ttrahan/a21af15a6bae537b0db63a963caf09cd to your computer and use it in GitHub Desktop.
# Extract integration data
# when sourcing this file, pass in the name of the integration resource as the only parameter
echo -e "\n*** extracting AWS integration information ***"
# Load integration values into env variables for aws_access_key_id, aws_secret_access_key
get_integration() {
local INTEGRATION_FILE="./IN/$1/integration.env"
if [ -f "$INTEGRATION_FILE" ]; then
. $INTEGRATION_FILE
echo "loaded integration file"
else
echo "no integration file exists"
fi
}
get_integration $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment