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
import boto3 | |
client = boto3.client('lambda') | |
def _clean_function(function_data, dry_run, max_versions): | |
skipped_items = 0 | |
while True: # list_versions_by_function returns up to 50 versions per call | |
versions = client.list_versions_by_function( | |
FunctionName=function_data['FunctionArn'] |
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
SELECT member_id, first_name, last_name, member_since, last_accessed, email FROM dbqsv_swpm_members_tbl | |
LEFT JOIN dbqsv_swpm_membership_tbl | |
ON ( membership_level = id ) | |
WHERE membership_level=3; |
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 | |
AWS_PROFILE=<ENTER AWS PROFILE NAME HERE> | |
AWS_REGION=<ENTER INSTANCE REGION> | |
AWS_INSTANCE_ID=<ENTER INSTANCE ID HERE> | |
red=`tput setaf 1` | |
green=`tput setaf 2` | |
reset=`tput sgr0` |
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
import boto3 | |
old_access_key_id = '***' | |
old_secret_access_key = '***' | |
old_bucket_name = '***' | |
new_access_key_id = '***' | |
new_secret_access_key = '***' | |
new_bucket_name = '***' |
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 | |
command -v aws | |
if [[ $? != 0 ]]; then | |
echo "Please install awscli and try again" | |
return; | |
fi | |
set -e |