Skip to content

Commit

Permalink
Add s3_bucket to template fields in SFTP to S3 operator (#30444)
Browse files Browse the repository at this point in the history
This is safe as Jinja template will not validate with s3 rules
  • Loading branch information
potiuk committed Apr 3, 2023
1 parent b18240f commit 9fc0f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/amazon/aws/transfers/sftp_to_s3.py
Expand Up @@ -52,7 +52,7 @@ class SFTPToS3Operator(BaseOperator):
if False streams file from SFTP to S3.
"""

template_fields: Sequence[str] = ("s3_key", "sftp_path")
template_fields: Sequence[str] = ("s3_key", "sftp_path", "s3_bucket")

def __init__(
self,
Expand Down

0 comments on commit 9fc0f20

Please sign in to comment.