code: function configureCorsForBucket(aws, bucketName) {
    const params = {
      Bucket: bucketName,
      CORSConfiguration: require('./resources/CORSPolicy')
    };
  
    return aws.request('S3', 'putBucketCors', params);
  }
docs: Configures CORS policy for given bucket
  @param {Object} aws - AWS class
  @param {string} bucketName - Name of bucket to be configured