Skip to content

Instantly share code, notes, and snippets.

@tmclaugh
tmclaugh / .bashrc
Created January 30, 2018 20:50
goaws() bash function
goaws () {
PROFILE=$1
export AWS_REGION='us-east-1'
export AWS_DEFAULT_PROFILE=$PROFILE
# this will override the profile used by some tools so let's not set that
# even though it's standard.
#export AWS_PROFILE=$PROFILE
export _SLS_STAGE=$(echo $AWS_DEFAULT_PROFILE | cut -s -d '-' -f 2)
export SLS_STAGE=${_SLS_STAGE:-prime}
import time
from thundra.thundra_agent import Thundra
from thundra.plugins.trace.traceable import Traceable
THUNDRA_API_KEY = os.environ.get('THUNDRA_API_KEY', '')
thundra = Thundra(api_key=THUNDRA_API_KEY)
@Traceable(trace_args=True, trace_return_value=True)
def _action_a():