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
asked a month ago383 views
2 Answers
1
Accepted Answer

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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
0

Thanks For the solution.

Pankaj
answered a month ago

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