Backing up Object Store: Difference between revisions

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.  


<syntaxhighlight>
<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
</syntaxhighlight>
</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.
102

edits