I am uploading files to S3 using Typescript code as follows:
import {PutObjectCommand, PutObjectCommandInput, S3Client} from "@aws-sdk/client-s3";
const s3 = new S3Client(config);
const uploadParams: PutObjectCommandInput = {
Bucket: bucketName,
Key: filename,
Body: fileData
};
await s3.send(new PutObjectCommand(uploadParams));
However, I need to make object public after uploading in order to access it as a part of a static website and it is uploaded as private. How I can tell the s3 client to also make it public?