ec2 modules

This commit is contained in:
carnal0wnage
2017-06-14 00:40:21 -04:00
parent 9424d2a976
commit 12b3b85fdb
5 changed files with 111 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
'''
This file is used to list volumes of ec2 instances
'''
import boto3
import botocore
import json
import urllib
import logging
import sys,os
import pprint
pp = pprint.PrettyPrinter(indent=5, width=80)
from ec2.ec2 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_instance_volume_details(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
get_instance_volume_details2(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)