title: .NET How to config amazon S3 cloudFront to upload and get files
body: <p>I can config to upload file to with default link like <a href="https://s3-ap-southeast-1.amazonaws.com/mybucket/" rel="nofollow noreferrer">https://s3-ap-southeast-1.amazonaws.com/mybucket/</a>. My code like </p>
  
  <pre><code>IAmazonS3 client;
  using (client = Amazon.AWSClientFactory.CreateAmazonS3Client(S3Service.AwsAccessKey, S3Service.AwsSecretKey, RegionEndpoint.APSoutheast1))
  {
      var request = new PutObjectRequest()
      {
          BucketName = S3Service.BucketName,
          CannedACL = S3CannedACL.PublicRead,
          Key = string.Format("{0}", fileName),
          InputStream = fileData
      };
      client.PutObject(request);
  }
  </code></pre>
  
  <p>But when my customer give me an  <strong>Amazon S3 CloudFront Domain</strong> like <a href="http://custom.com/" rel="nofollow noreferrer">https://custom.com/</a></p>
  
  <p>I cannot find solution to push my file to this bucket. Can any one give me a keyword or solution to solve this problem?</p>