export PROFILE=some-profile
aws stepfunctions list-state-machines --region eu-central-1 --profile $PROFILE | jq -r '.stateMachines | .[] | .stateMachineArn' |
while read uname1; do
echo "Deleting $uname1";
aws stepfunctions delete-state-machine --region eu-central-1 --state-machine-arn $uname1 --profile $PROFILE;
done
export PROFILE=some-profile
aws lambda list-functions --region us-east-1 --profile $PROFILE | jq -r '.Functions | .[] | .FunctionName' |
while read uname1; do
echo "Deleting $uname1";
aws lambda delete-function --region us-east-1 --function-name $uname1 --profile $PROFILE;
done