Skip to content

Commit 7ac9802

Browse files
EC2 handler updates
Removed commons function
1 parent 340c4f0 commit 7ac9802

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

VM/ec2_handler.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
import logging
44
import os
55

6-
from common import common_functions
7-
8-
LOG_FILE_NAME = 'output.log'
6+
LOG_FILE_NAME = 'ec2-output.log'
97

108
class EC2ResourceHandler:
119
"""EC2 Resource handler."""
@@ -126,13 +124,6 @@ def delete(self, instance_id):
126124

127125
def main():
128126

129-
available_cloud_setup = common_functions.get_cloud_setup()
130-
if 'aws' not in available_cloud_setup:
131-
print("Cloud setup not found for aws.")
132-
print("Doing the setup now..")
133-
os.system("pip install awscli")
134-
os.system("aws configure")
135-
136127
ec2_handler = EC2ResourceHandler()
137128

138129
print("Spinning up EC2 instance")

0 commit comments

Comments
 (0)