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
posta 2 mesi fa424 visualizzazioni
2 Risposte
1
Risposta accettata

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
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
0

Thanks For the solution.

Pankaj
con risposta un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande