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

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠