Skip to content

Commit

Permalink
thursday u/d
Browse files Browse the repository at this point in the history
  • Loading branch information
proquickly committed Nov 21, 2024
1 parent da0b5c8 commit 19f0785
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ resource "aws_instance" "py_server" {
user_data = <<-EOF
#!/bin/bash
sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo apt-get install -y python3 python3-pip git
pip3 install flask requests
mkdir -p /home/ubuntu/app
# Downloading app.py from S3
# must first aws s3 cp /Users/andy/ws/projects/andy/tfgha/src/tfgha/app.py s3://proquickly/apps/tfgha/app.py
aws s3 cp s3://proquickly/apps/tfgha/app.py /home/ubuntu/app/app.py
# Clone the GitHub repository
git clone https://github.com/proquickly/tfgha.git /home/ubuntu/app
cd /home/ubuntu/app
cd /home/ubuntu/app/src/thfgha
nohup python3 app.py &
EOF

Expand Down

0 comments on commit 19f0785

Please sign in to comment.