Files
weirdAAL/s3_list_buckets_for_acct.py
carnal0wnage 004f0e7f0b updates
2017-06-12 22:10:19 -04:00

23 lines
467 B
Python

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 =''
#client = boto3.resource('s3')
#for bucket in client.buckets.all():
# print(bucket.name)
get_s3objects_for_account(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)