Server is unreachalble

0

wget https://aws-tc-largeobjcts.s3-us-west-2.amazonaws.com/DEV-AWS-MO-GCNv2/FlaskApp.zip I am practicing EC2, I added this script but the zip file is not found, from which server's will it be available or any general answers if I can get help!

profile picture
已提问 5 个月前131 查看次数
2 回答
1

Hello.

The S3 URL is incorrect.
The correct name is "largeobjects".
Your URL is "largeobjcts" and the "e" in objects is missing.
Please do as below:

wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/DEV-AWS-MO-GCNv2/FlaskApp.zip
profile picture
专家
已回答 5 个月前
  • #!/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-pip yum -y install ec2-instance-connect pip install -r requirements.txt yum -y install stress export PHOTOS_BUCKET=${SUB_PHOTOS_BUCKET} export AWS_DEFAULT_REGION=ap-south-1 export DYNAMO_MODE=on FLASK_APP=application.py /usr/local/bin/flask run --host=0.0.0.0 --port=80

    I changed the mistake and tried again but same error has found, here is the script given by course instructor

0

i would suggest checking following for the S3 bucket DEV-AWS-MO-GCNv2

  1. make sure the s3 bucket is properly created https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html
  2. permission, check IAM role permission.

let me know I can support you remotely as well

profile picture
已回答 5 个月前
  • Actually that's the link provided by AWS to download the FlaskApp.zip file and that link is perfectly reachable

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容