Workaround Advise for CloudFormation Limitation on S3 KMS Encryption and Replication

0

Hello, Here is the challenge I'm working on. I've established a CloudFormation Template that configures a source S3 bucket replicating objects to a destination S3 bucket in another region. Both buckets are encrypted with KMS.

I'm trying to luanch this CloudFormation template and other templates through GitHub actions.

Here is the challenge I'm facing. By default, S3 doesn't replicate objects that are encrypted with KMS and it seems that CloudFormation doesn't have a property to enable this replication.

Therefore, after teh CloudFormation tempaltes deploy, I'm left configuring the replication rule from "do not replicate" to "replicate" through other means.

I'm thinking I could explore a script through the CLI? How would others go about this?

Here is documentation on replication configuration for cloudformation. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html

Here is documentation on how KMS encrypted s3 buckets default to do not replicate. https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-config-for-kms-objects.html

沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南