pep8 and documentation
This commit is contained in:
@@ -11,6 +11,7 @@ def module_ec2_describe_instances_basic():
|
||||
ex:
|
||||
[+] Listing instances for region: us-west-2 [+]
|
||||
InstanceID: i-XXXXXXXXXXXXXXX, InstanceType: t2.micro, State: {'Code': 80, 'Name': 'stopped'}, Launchtime: 2016-08-25 22:31:31+00:00
|
||||
python3 weirdAAL.py -m ec2_describe_instances_basic -t demo
|
||||
'''
|
||||
describe_instances_basic()
|
||||
|
||||
@@ -18,6 +19,7 @@ def module_ec2_describe_instances_basic():
|
||||
def module_ec2_describe_instances():
|
||||
'''
|
||||
All info about each EC2 instance
|
||||
python3 weirdAAL.py -m ec2_describe_instances -t demo
|
||||
'''
|
||||
describe_instances()
|
||||
|
||||
@@ -25,6 +27,7 @@ def module_ec2_describe_instances():
|
||||
def module_ec2_write_instances_to_file():
|
||||
'''
|
||||
For each region write the instanceIDs to a file by region ex (AWSKEYID-region.txt)
|
||||
python3 weirdAAL.py -m ec2_write_instances_to_file -t demo
|
||||
'''
|
||||
write_instances_to_file()
|
||||
|
||||
@@ -32,6 +35,7 @@ def module_ec2_write_instances_to_file():
|
||||
def module_ec2_get_instance_volume_details():
|
||||
'''
|
||||
Show volumes sorted by instanceId ex: instanceID-->multiple volumes less detail than get_instance_volume_details2
|
||||
python3 weirdAAL.py -m ec2_get_instance_volume_details -t demo
|
||||
'''
|
||||
get_instance_volume_details()
|
||||
|
||||
@@ -39,6 +43,7 @@ def module_ec2_get_instance_volume_details():
|
||||
def module_ec2_get_instance_volume_details2():
|
||||
'''
|
||||
Show volumes by instanceId but instanceID->volume1 of ID, instanceID->volume2 of ID but more details.
|
||||
python3 weirdAAL.py -m ec2_get_instance_volume_details2 -t demo
|
||||
'''
|
||||
get_instance_volume_details2()
|
||||
|
||||
@@ -46,6 +51,7 @@ def module_ec2_get_instance_volume_details2():
|
||||
def module_ec2_review_encrypted_volumes():
|
||||
'''
|
||||
This function is used to list EBS volumes and whether or not they are encrypted. This is only for "in-use" (running) volumes.
|
||||
python3 weirdAAL.py -m ec2_review_encrypted_volumes -t demo
|
||||
'''
|
||||
review_encrypted_volumes()
|
||||
|
||||
@@ -53,6 +59,7 @@ def module_ec2_review_encrypted_volumes():
|
||||
def module_ec2_describe_addresses():
|
||||
'''
|
||||
This function is used to describe ec2 network addresses.
|
||||
python3 weirdAAL.py -m ec2_describe_addresses -t demo
|
||||
'''
|
||||
describe_addresses()
|
||||
|
||||
@@ -60,6 +67,7 @@ def module_ec2_describe_addresses():
|
||||
def module_ec2_describe_network_interfaces():
|
||||
'''
|
||||
This function is used to describe ec2 network interfaces.
|
||||
python3 weirdAAL.py -m ec2_describe_network_interfaces -t demo
|
||||
'''
|
||||
describe_network_interfaces()
|
||||
|
||||
@@ -67,6 +75,7 @@ def module_ec2_describe_network_interfaces():
|
||||
def module_ec2_describe_route_tables():
|
||||
'''
|
||||
This function describes route tables for each ec2 instance
|
||||
python3 weirdAAL.py -m ec2_describe_route_tables -t demo
|
||||
'''
|
||||
describe_route_tables()
|
||||
|
||||
@@ -99,6 +108,7 @@ def module_ec2_get_console_output(*text):
|
||||
def module_ec2_get_console_screenshot_all():
|
||||
'''
|
||||
This function will attempt to screenshot all EC2 instances (loops through all regions)
|
||||
python3 weirdAAL.py -m ec2_get_console_screenshot_all -t demo
|
||||
'''
|
||||
get_console_screenshot_all()
|
||||
|
||||
@@ -106,6 +116,7 @@ def module_ec2_get_console_screenshot_all():
|
||||
def module_ec2_get_console_output_all():
|
||||
'''
|
||||
This function will attempt to get the console output all EC2 instances (loops through all regions)
|
||||
python3 weirdAAL.py -m ec2_get_console_output_all -t demo
|
||||
'''
|
||||
get_console_output_all()
|
||||
|
||||
@@ -153,6 +164,8 @@ def module_ec2_list_launchable_ami():
|
||||
per documentation this doenst list AMIs you own.
|
||||
"The following command lists the AMIs for which you have explicit launch permissions. This list does not include any AMIs that you own."
|
||||
run ec2_list_owner_ami also to get a list of YOUR account's AMIs
|
||||
|
||||
python3 weirdAAL.py -m ec2_list_launchable_ami -t demo
|
||||
'''
|
||||
ec2_list_launchable_ami()
|
||||
|
||||
@@ -160,5 +173,6 @@ def module_ec2_list_launchable_ami():
|
||||
def module_ec2_list_owner_ami():
|
||||
'''
|
||||
This function will attempt to get all AMIs for the key owner (loops through all regions)
|
||||
python3 weirdAAL.py -m ec2_list_owner_ami -t demo
|
||||
'''
|
||||
ec2_list_owner_ami()
|
||||
ec2_list_owner_ami()
|
||||
|
||||
Reference in New Issue
Block a user