How to fix AWS S3 bucket mission "Sorry! You do not have permissions to view this bucket."
<p>After messing around with S3 bucket permission, I can't access the s3 bucket from AWS console and CLI. Always getting this error from the console</p>

<blockquote>
  <p>Sorry! You do not have permissions to view this bucket.</p>
</blockquote>

<p>Using the CLI on any s3api call, would get Access Denied.</p>

<blockquote>
  <p>A client error (AccessDenied) occurred when calling the GetBucketVersioning operation: Access Denied
  A client error (AccessDenied) occurred when calling the PutObjectAcl operation: Access Denied</p>
</blockquote>

<p>Anyone know how to fix this issue.</p>