From 39ceb9346e67c5c700fe3b207265c874eea05b80 Mon Sep 17 00:00:00 2001 From: Andy Miles Date: Wed, 6 Nov 2024 09:45:37 -0800 Subject: [PATCH] start a web server --- terraform/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/main.tf b/terraform/main.tf index 20976fe..5a357a1 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -26,7 +26,7 @@ resource "aws_instance" "example" { #pip install -r requirements.txt # Run your Python script - python3 -V + python3 -c "import http.server; import socketserver; PORT = 8080; Handler = http.server.SimpleHTTPRequestHandler; with socketserver.TCPServer(('', PORT), Handler) as httpd: print('Serving HTTP on port', PORT); httpd.serve_forever()" EOF tags = {