Skip to content

Commit

Permalink
updated server message
Browse files Browse the repository at this point in the history
  • Loading branch information
proquickly committed Nov 19, 2024
1 parent d1f36b7 commit 292447f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
run: terraform apply -auto-approve tfplan
working-directory: terraform

- name: Wait for 2 minutes
run: sleep 120 # 300 seconds equals 5 minutes
- name: Wait for 4 minutes
run: sleep 240 # 300 seconds equals 5 minutes

- name: Destroy Terraform
run: terraform destroy -auto-approve
Expand Down
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "aws_instance" "py_server" {
app = Flask(__name__)
@app.route('/')
def hello():
return "Hello from Python on AWS"
return "Hello from Python on AWS via terraform"
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
EOL
Expand Down

0 comments on commit 292447f

Please sign in to comment.