title: How do I include an S3 bucket name and region/endpoint in a single URL?
body: <p>If I have a bucket named <code>mybucket</code> in <code>region=us-east-1</code>, then I can access it using</p>
  
  <pre><code>aws s3 ls s3://mybucket --region=us-east-1
  </code></pre>
  
  <p>However, that requires passing <strong>two</strong> pieces of information:</p>
  
  <ol>
  <li>The URL <code>s3://mybucket</code></li>
  <li>The region <code>us-east-1</code> (or the endpoint, whichever)</li>
  </ol>
  
  <p>Ideally, a URL is a <em>uniform</em> resource locator. It is great that it has the protocol (<code>s3</code>) and the bucket name, but is there an AWS S3-standard single URL that encodes both the region and the bucket name, such that I can do:</p>
  
  <pre><code>aws s3 ls s3://mybucket_url_including_region_or_endpoint
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>To clarify, I am <em>not</em> looking for the list of endpoints. I am looking for how an s3 URL really can be a uniform resource locator, by encapsulating all of the necessary information inside it to obtain the resource (minus auth credentials, of course).</p>