Simple sanity (public access) check for Amazon-S3 bucket.
Features:
- Checks if given Amazon-S3 bucket is publicly accessible or not.
- No need for Amazon AWS CLI
- Works from your OS Windows desktop (command line)
- It's executable (s3sanity.exe) - no need for Python install
- It's 32 bit - it will work on any vanilla Windows.
- No AWS Access Keys needed.
- Written using Python/boto/PyInstaller
OS | Platform | Version | |
---|---|---|---|
Windows | 32bit | [0.1.0 beta] |
s3sanity
helps you confirm that given bucket is not publicly accessible.success
message if bucket is publicly accessible (readable).error
message if bucket does not exists or not readable.Database/ETL developers, Data Integrators, Data Engineers, Business Analysts, AWS Developers, DevOps
Pre-Prod (UAT/QA/DEV)
C:\Python35-32>dist\s3sanity.exe ## S3 sanity check. ## ## Outputs access status to the screen. ## Usage: s3_sanity.exe -b <bucket_name> -b [--bucket] -- S3 bucket name. """
test
is readable by everyone.C:\Python35-32>dist\s3sanity.exe -b test ##################################### NO access OR does NOT exists ("test") #####################################
Bucket test
does not exist or unreadable by everyone.
test2
is readable by everyone.C:\Python35-32>dist\s3sanity.exe -b test2 You HAVE access to "test2"
Horay! Bucket test2
is readable by everyone!
C:\Python35-32>dist\s3sanity.exe -b elvis ##################################### NO access OR does NOT exists ("elvis") #####################################
Too bad. Bucket elvis
does not exist or unreadable by everyone.
C:\Python35-32>dist\s3sanity.exe -b refuse You HAVE access to "refuse"
Horay! Bucket refuse
is readable by everyone!
s3sanity 0.1.0
No, it cannot really tell if it's unreadable or simply does not exists.
No, no passwords or access keys.
We are testing public read access to a bucket.
I use Python boto (AWS API for Python) module to interact with AWS.
Boto checks header of the bucket. If successful - it's readable.
s3.meta.client.head_bucket(Bucket=bucket.name)
You can use AWS CLI aws s3api
to do the same.
No. To do you have to call s3sanity.exe
for each S3 bucket.
No
No
No, only OS Windows for now.
I used Python and Boto (AWS API for Python) to write it.
Please, contact me for sources.
Yes, please, ask me for new features.
Yes, AWS Certified Developer (Associate)
Yes, you can PM me here or email at alex_buz@yahoo.com
.
I'll get back to you within hours.
Wiki: CSV_Loader_For_Redshift
Wiki: Oracle_To_Redshift_Data_Loader
Wiki: Oracle_To_S3_Data_Uploader