Skip to content

Support for passing KMS key when copying S3 objects across AWS accounts using S3CopyObjectOperator #55708

@RajasGujarathi

Description

@RajasGujarathi

I'm using the S3CopyObjectOperator in Apache Airflow to copy objects between two S3 buckets that reside in different AWS accounts. The destination bucket is encrypted using a KMS key.

However, I couldn't find a way to pass the KMS key to the operator for the destination bucket. This results in a permissions or encryption error during the copy operation.

🔍 Use Case
Source bucket: Account A
Destination bucket: Account B (KMS-encrypted)
Operator: S3CopyObjectOperator

❓ Question
How can I pass the KMS key ID for the destination bucket in this scenario?

Originally posted by @RajasGujarathi in #55658

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions