This file contains hidden or 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 -e | |
############# | |
# CONSTANTS # | |
############# | |
DIM_SCREEN_DELAY=5 | |
FADE_OUT_STEP=3 | |
MUSIC_APPLICATION_NAME="Spotify" | |
FADE_OUT_LIMIT=15 |
This file contains hidden or 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 hidden or 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 = '***' |