title: Permissions needed to run "aws sync" command
body: <p>I am trying to limit access of an IAM user to only 3 buckets.I'm working to create an IAM policy on AWS that enables the IAM user to sync files onto and from AWS S3. I have written the following policy out but every time I run an <code>aws sync</code> command to sync a folder on the desktop with the bucket my policy allows access to, the terminal seems to get stuck without outputting any response or completing the process.
  Any ideas on what permissions might be missing for the same?</p>
  <pre><code>{
  &quot;Version&quot;: &quot;2012-10-17&quot;,
  &quot;Statement&quot;: [
      {
          &quot;Sid&quot;: &quot;VisualEditor0&quot;,
          &quot;Effect&quot;: &quot;Allow&quot;,
          &quot;Action&quot;: [
              &quot;s3:PutObject&quot;,
              &quot;s3:GetObject&quot;,
              &quot;s3:ListBucket&quot;,
              &quot;s3:DeleteObject&quot;,
              &quot;s3:GetBucketLocation&quot;
          ],
          &quot;Resource&quot;: [
              &quot;arn:aws:s3:::bucket-1&quot;,
              &quot;arn:aws:s3:::bucket-2&quot;,
              &quot;arn:aws:s3:::bucket-3&quot;
          ]
      }
  ]
  </code></pre>
  <p>}</p>