export AWS_PROFILE=$1
export AWS_DEFAULT_REGION=$2

FUNCTION=$(aws lambda list-functions --output text |grep CloudwatchMetricsToSensu|cut -f6|head -1)
[[ -z  $FUNCTION ]] && echo "Can't find function in $1 $2" && exit 1

aws lambda update-function-code --function-name $FUNCTION --zip-file fileb://./.serverless/charon-relay-cloudwatch.zip