Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Step 5: An error occurred (MalformedPolicy) when calling the PutBucketPolicy operation: Policy has invalid resource #4

Description

@bartonhammond

screen shot 2018-10-22 at 3 06 54 pm

bucketpolicy.json:

{
  "Version":"2012-10-17",
  "Statement":[
    {
      "Sid":"AddPerm",
      "Effect":"Allow",
      "Principal": "*",
      "Action":["s3:GetObject"],
      "Resource":["arn:aws:s3:::barton-travel-site/*"]
    }
  ]
}

Command:
aws s3api put-bucket-policy --bucket barton-travel-site --policy file://bucketpolicy.json

Output:

An error occurred (MalformedPolicy) when calling the PutBucketPolicy operation: Policy has invalid resource

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions