Create s3_list_bucket_contents.py

rename and comment
This commit is contained in:
Chris Gates
2017-06-12 21:30:18 -04:00
committed by GitHub
parent 9351fe15d7
commit 46fd3b148f

View File

@@ -0,0 +1,19 @@
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 =''
#Attempt to list the contents of the bucket
get_s3bucket_policy(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,'myfuckingbucket')