title: R - aws.s3 - Amazon S3 Client error: (405) Method Not Allowed
body: <p>I am trying to use the <a href="https://cran.r-project.org/web/packages/aws.s3/" rel="nofollow noreferrer">aws.s3</a> package in R to access data on an Amazon S3 bucket. However, I run into problems:</p>
  
  <pre><code>bucket_exists( bucket = 's3://my-bucket-name' )
  Client error: (405) Method Not Allowed
  </code></pre>
  
  <p>I have a key and secret that appear to authenticate properly; changing the key results in a 403 forbidden error. My region is set appropriately (eu-central-1).</p>
  
  <p>I have no problems using the <a href="https://aws.amazon.com/cli/" rel="nofollow noreferrer">AWS command line interface</a> with the same key/secret.</p>
  
  <p>If anyone has had similar issues, please let me know your resolution.
  Cheers</p>