This repository contains Python code examples used in AWS training courses, demonstrating both AWS service interactions and general utility functions.
Creates an S3 bucket and optionally deletes it after creation.
Usage:
s3CreateDelBucket.py <bucket_name> <aws_region> [--keep_bucket]Demonstrates how to retrieve an object from an S3 bucket using the AWS SDK for Python (Boto3).
Usage:
# Edit bucket_name and object_key variables in the script
python s3getobj.pyChecks if a specified S3 bucket exists and handles various access scenarios.
Usage:
# Edit bucket_name variable in the script
python Demo_S3_HeadBucket_python.pyConverts temperatures between Celsius and Fahrenheit.
Usage:
python convertTemp.py
# Then follow the prompts to enter a temperature (e.g., 22C or 72F)Simple demonstration of command-line argument processing and basic arithmetic.
Usage:
hello2.py <number1> <number2>