Skip to content

Commit

Permalink
Add s3_bucket to template fields in SFTP to S3 operator
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 c751305
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
Original file line number Diff line number Diff line change
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 c751305

Please sign in to comment.