M-Waleed-Khan opened a new issue, #35955:
URL: https://github.com/apache/airflow/issues/35955
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
Hi.
I am trying to use S3KeySensor in my dag to trigger a task inside the same
dag. here are the configurations I am using for S3KeySensor
from airflow.providers.amazon.aws.sensors.s3 import S3KeySensor
aws_credentials = {
'aws_access_key_id': 'ACCESS_KEY_ID',
'aws_secret_access_key': 'SECRET_ACCESS_KEY'
}
file_sensor_task = S3KeySensor(
task_id='file_sensor',
poke_interval=15, # Check for file every 10 minutes
timeout=60, # Wait up to 30 minutes for the file to appear
bucket_name='BUCKET_NAME',
bucket_key='BUCKET_KEY',
mode='poke',
aws_conn_id=aws_credentials,
dag=DAG_NAME,
)
The reason I am using aws_credentials dictionary is because I am trying to
bypass adding the connection details in airflow Connections UI. When I open my
connections UI in airflow this is what I get
version 2.2
### What you think should happen instead
successfull connection
### How to reproduce
pass a diction for conn_id
### Operating System
Mac and AWS MWAA both same
### Versions of Apache Airflow Providers
6.0.0
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]