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
asked 5 months ago122 views
2 Answers
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
EXPERT
answered 5 months ago
  • #!/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
answered 5 months ago
  • Actually that's the link provided by AWS to download the FlaskApp.zip file and that link is perfectly reachable

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions