3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Problem solved sort of. It will not run when I click the open address link in EC2 console. I had to open a new window then copy and paste the IP into the new window. Using Firefox currently. I did this on my laptop as well and had the same issue, so I'm thinking an add-on I have running there is blocking it somehow.
répondu il y a un an
0
Follow up Ive done both a curl and wget to the localhost. Worked fine. I cant connect to the server using the public ip. Ive allowed everything I can in the setings
répondu il y a un an
0
Although a late reply but following made if work for me
- Add rule for TCP port 80 traffic from internet rule in Security Group
- Use following User Data for launching the instance #!/bin/bash -ex wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/DEV-AWS-MO-GCNv2/FlaskApp.zip unzip FlaskApp.zip cd FlaskApp/ yum -y install python3 yum -y install python3-pip pip install -r requirements.txt yum -y install stress export PHOTOS_BUCKET={Bucket} export AWS_DEFAULT_REGION={Region} export DYNAMO_MODE=on FLASK_APP=application.py /usr/local/bin/flask run --host=0.0.0.0 --port=80
répondu il y a 6 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a 3 mois
- demandé il y a 6 jours
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans