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
gefragt vor einem Monat421 Aufrufe
2 Antworten
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
0

Thanks For the solution.

Pankaj
beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen