S3 Static website not working Error: Expected params.WebsiteConfiguration.RoutingRules to be an Array

0

I am following the aws document to create a static website https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteAccessPermissionsReqd.html Getting the error while adding the policy and clicking on save changes. { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "", "Action": [ "s3:GetObject" ], "Resource": [ "arn:aws:s3:::panajpoddar/" ] } ] }

ERROR* Unknown Error An unexpected error occurred. API response Expected params.WebsiteConfiguration.RoutingRules to be an Array

Pankaj
已提問 2 個月前檢視次數 424 次
2 個答案
1
已接受的答案

Hello.

Are you trying to set it in the redirect rule instead of the bucket policy?
https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-page-redirect.html?icmpid=docs_amazons3_console

Redirect rules are different from bucket policies, so check where to set them.
Bucket policy needs to be set from the permissions tab as shown in the image below.
a

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
0

Thanks For the solution.

Pankaj
已回答 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南