We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cbbbd7 commit 47f2a9fCopy full SHA for 47f2a9f
app.py
@@ -90,6 +90,7 @@ def stop_ec2_instances():
90
return jsonify({'Message': "Unexpected Error occured", 'Error': str(error)}), 500
91
92
93
+# Endpoint: http://<api_host>:<api_port>/ec2/create
94
@app.route("/ec2/create", methods=["POST"])
95
def create_ec2_instance():
96
try:
@@ -114,6 +115,7 @@ def create_ec2_instance():
114
115
116
117
118
+# Endpoint: http://<api_host>:<api_port>/ec2/terminate
119
@app.route("/ec2/terminate", methods=["POST"])
120
def terminate_ec2_instance():
121
0 commit comments