Skip to content

Instantly share code, notes, and snippets.

@ttrahan
Last active October 26, 2016 22:23
# 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