Error When I create a Bucket Policy Why?

0

I am trying to grand a webpage public access however my bucket policy is not being processed through the AWS console or through the command line.

So here is was what I have done:

  1. I have obviously a created a bucket.
  2. Uploaded an html doc called index.html
  3. Enabled static website hosting pointing to the default page of index.html for the purpose of a Bucket Website Endpoint
  4. Cleared Block Public Access

Now when I go to Bucket Policy I get this error:

Unknown Error
An unexpected error occurred.
API response

Policy has invalid action

This is the json code used:

{
"Id": "Policy1609393710877",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Action": [
"s3: GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::1example.com/",
"Principal": "*"
}
]
}

Any suggestions would be greatly appreciated.

질문됨 3년 전1326회 조회
1개 답변
0

I have figured what the problem was.
The issue was simply bad syntax of the code itself.

Problem solved.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠