102
edits
Line 13: | Line 13: | ||
First, we make sure that <code>my-bucket</code> has currently no policy. | First, we make sure that <code>my-bucket</code> has currently no policy. | ||
< | <pre>$aws s3api --profile my-project get-bucket-policy --bucket my-bucket | ||
$aws s3api --profile my-project get-bucket-policy --bucket my-bucket | |||
An error occurred (NoSuchBucketPolicy) when calling the GetBucketPolicy operation: The bucket policy does not exist | An error occurred (NoSuchBucketPolicy) when calling the GetBucketPolicy operation: The bucket policy does not exist | ||
</ | </pre> | ||
If that command returns something you need to add the new statement the existing policy. But we are no covering that here. | If that command returns something you need to add the new statement the existing policy. But we are no covering that here. |
edits