title: How can I sync two amazon buckets using the AWS CLI?
body: <p>I'm using the AWS S3 CLI to sync two buckets, following the Amazon CLI S3 SYNC format specified in the documentation, as follows:</p>
  
  <pre><code>aws s3 sync s3://source_bucket s3://target_bucket --exclude *.tmp
  </code></pre>
  
  <p>Bug I get the following error:</p>
  
  <pre><code>A region must be specified --region or specifying the region in a configuration file or as an environment variable. Alternately, an endpoint can be specified with --endpoint-url
  </code></pre>
  
  <p>I have scoured the internet in addition to AWS CLI docs and find no reference to --region in the context of S3 SYNC.  Any guidance would be appreciated!</p>
  
  <p>Probably immaterial, but I am running Mac OS X Mavericks 10.9.1 on a MBPr (16GB RAM, 512GB SSD, quad-core)</p>