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
""" | |
Basic script to set up environment variables and call a lambda entry point so | |
that it can be ran locally | |
""" | |
import logging | |
import os | |
import sys | |
import my_lambda as ml |
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 | |
CONFIG_FILE="${HOME}/.aws/config" | |
function awsprofile() { | |
if [ -z ${AWS_PROFILE+x} ]; then msg="AWS_PROFILE is unset"; else msg="Current AWS_PROFILE=${AWS_PROFILE}"; fi | |
echo -e "\n${msg}" | |
echo -e "Available profiles:\n" | |
PS3=$'\n'"Use number to select, 'u' to unset or 'q' to quit: " |