Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/ env python3.11
# This script will send messages to an SQS queue
import boto3
import json
import random
from datetime import datetime
from botocore.exceptions import ClientError
import string
#!/usr/bin/ env python3.11
import boto3
import random
import string
from datetime import datetime
from botocore.exceptions import ClientError
import logging
# create a sqs connection
#!/usr/bin/env python3.11
# list all files, directories and subdirectories's files in a given directory source of help for this
# from stackoverflow: https://stackoverflow.com/questions/2909975/python-list-directory-subdirectory-and-files
# this function will not print out with formatted keys and values instead the keys are the path of the file
# and the values are the name of the file
def list_files_recursive(directory, files, recursive_dictionary):
#!/usr/bin/env python3.11
"""
Empty List initially to be filled with some of the AWS services
i.e. S3, DynamoDB, EC2, CloudFront, SAM, etc.
"""
ListServices = []
"""
Manually fill our list of services using the .append method followed by print