We are trying to write objects with encryption at rest. To enable this, the request containing the payload we intend to upload must include a x-amz-server-side-encryption header. [1]. I would imagine this is a common use case, but after some digging, I cannot find any article that covers this. Has anybody configured FileSink to enable server side encryption for objects written into an S3 bucket? Or would we have to write a custom http sink that encapsulates the payload with this header?
Best, James [1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingServerSideEncryption.html