diff --git a/terraform/main.tf b/terraform/main.tf index 58292e1..edb02a8 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -18,14 +18,10 @@ resource "aws_instance" "py_server" { @app.route('/') def hello(): return "Hello from Python!" - if __name__ == '__main__': app.run(host='0.0.0.0', port=5000) EOT - pip3 install flask - - # Run app python3 /app/app.py & EOF