I have a list of dicts like this:
[{'sftp_conn': 'conn_1', 'sftp_path': 'path_1'},
{'sftp_conn': 'conn_2', 'sftp_path': 'path_2'}
]
I know how to fetch values from the list of values
I want to loop each in the list and assign values to the variables
id =1 sftp_conn = 'conn_1' , sftp_path = 'path_1'
then next
id=2 sftp_conn = 'conn_2' , sftp_path = 'path_2'
I have an Airflow code as below, so I want to iterate and pass the values to sftp_path and sftp_conn_id
for count, sftp in enumerate(sftp_list):
s3_to_sftp = S3ToSftpOperator(
task_id=f's3_to_sftp_{count}',
sftp_path= ,
sftp_conn_id= ,
s3_conn_id=S3_CONN_ID,
)