title: Assigning a CNAME to my static-website-bucket in amazon S3 using cloudflare
body: <p>I am working on creating a website for my brother (my first website) and have decided to host the whole site through amazon s3. I have done the usual setup so far:</p>
  
  <ol>
  <li><p>Create bucket with the name of the desired domain (www.website.com).</p></li>
  <li><p>Make the bucket a website and assign the index document and error page.</p></li>
  <li><p>upload all of the content and make it public.</p></li>
  </ol>
  
  <p>The website works fantastic through the bucket endpoint link <a href="http://www.website.com.s3-website-us-east-1.amazonaws.com/" rel="nofollow">http://www.website.com.s3-website-us-east-1.amazonaws.com/</a></p>
  
  <p>Following other tutorials on stackoverflow I then attempted to create a CNAME through my DNS provider. Unfortunately, my domain registrar (1and1.com) would not let me enter the amazon endpoint link saying that the url was too long. </p>
  
  <p>Further down in the comments section of the tutorial I was following was a comment from someone who surpassed this problem by using cloudflare.com. </p>
  
  <p>So, I signed up for cloudflare.com and changed the nameservers via 1and1.com to cloudflare cloudflare ones. After everything propagated I attempted to create a CNAME on cloudflare to the amazon bucket endpoint but i cant get it to work. </p>
  
  <p>How can I get my amazon s3 bucket on my domain name?</p>