title: Override Object in S3 Bucket if one with identical key already exists using aws-sdk
body: <p>I am uploading a file to an s3 bucket using the aws-sdk node module. 
  If I attempt to upload an object for which a key already exists in the bucket, I would like it to override the existing object. </p>
  
  <p>Is there a way to achieve that behavior? </p>
  
  <p>here is my code: </p>
  
  <pre><code>const uploadedImageData = await s3.upload({
            Bucket: AWS_bucket_name,
            Key: `profile-photo-${username}.jpg`,
            Body: resizedImage,
            ACL:'public-read-write',
          }).promise();```
  </code></pre>