スキップしてコンテンツを表示

images in the s3 bucket not displaying on the ec2 web page

0

im doing the lab on the genral immersion day basic module for s3. i have to access the s3 bucket through the ec2. on the management console in my s3 console it shows the images i uploaded in the bucket. on the website page of the ec2, after i submit the form with the bucket name and region. it takes me to the next page where the images are not displaying. any advise.

質問済み 2年前395ビュー

1回答
2

Hello,

You can check viewing s3 object from ec2 from this link:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonS3.html, provides examples like 'wget' / 'aws cli'. If the object is not public, you receive an ERROR 403: Forbidden message. If you receive this error, you must use either the Amazon S3 console, AWS CLI, AWS API, AWS SDK, or AWS Tools for Windows PowerShell, and you must have the required permissions. For more information, see https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html and https://docs.aws.amazon.com/AmazonS3/latest/userguide/download-objects.html.

If you successfully get object from ec2, you can check the object ContentType: https://repost.aws/questions/QUUCJesiChQwG2jjCXDJG9WQ/content-type-header-in-getobject-from-s3, especially the object is an image.

AWS
サポートエンジニア

回答済み 2年前

エキスパート

レビュー済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ