From 2f4997cf77a12383cbba0fb04bc7b0c06dce20f6 Mon Sep 17 00:00:00 2001 From: carnal0wnage Date: Tue, 20 Jun 2017 12:50:04 -0400 Subject: [PATCH] buckets and contents --- s3_list_buckets_and_contents.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 s3_list_buckets_and_contents.py diff --git a/s3_list_buckets_and_contents.py b/s3_list_buckets_and_contents.py new file mode 100644 index 0000000..409a8a2 --- /dev/null +++ b/s3_list_buckets_and_contents.py @@ -0,0 +1,21 @@ +import boto3 +import botocore + +import json +import urllib +import logging +import sys,os +import pprint + +pp = pprint.PrettyPrinter(indent=5, width=80) + +from s3.s3 import * + +#insert AWS key, will figure out how to pull this in from a single file for all scripts + +#AWS_ACCESS_KEY_ID = '' +#AWS_SECRET_ACCESS_KEY ='' + + + +get_s3objects_for_account_detailed(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) \ No newline at end of file