<img width="559" alt="screen shot 2018-10-22 at 3 06 54 pm" src="https://user-images.githubusercontent.com/1282364/47316188-2ac05700-d60c-11e8-8e04-3da68f43c25e.png"> 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 ```
bucketpolicy.json:
Command:
aws s3api put-bucket-policy --bucket barton-travel-site --policy file://bucketpolicy.jsonOutput: