23 lines
421 B
Python
23 lines
421 B
Python
'''
|
|
This file is used to list 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 lib.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_details(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) |