aru-trackunit commented on issue #28766:
URL: https://github.com/apache/airflow/issues/28766#issuecomment-1375297770

   Thank you for reply @Taragolis . I followed the documentation you sent and 
generated the `conn_uri` with `get_uri ` method
   ```
   conn=Connection(conn_id="test-s3",conn_type="aws", 
extra={"endpoint_url":"https://s3.eu-west-1.amazonaws.com";, 
"region_name"="eu-west-1"})
   ```
   The outcome of `conn.get_uri()` method was
   
`’aws:///?endpoint_url=https%3A%2F%2Fs3.eu-west-1.amazonaws.com&region_name=eu-west-1'`
   
   After following your documentation here 
https://airflow.apache.org/docs/apache-airflow-providers-amazon/stable/logging/s3-task-handler.html
   it took me to the connection I wrote above and when I try to execute 
   ```airflow connections add connection_id_1 --conn-uri 
aws:///?endpoint_url=https%3A%2F%2Fs3.eu-west-1.amazonaws.com&region_name=eu-west-1```
 then it’s not accepted by airflow cli method.
   
   However when I add s3 (or whatever string to the uri that corresponds host) 
then it becomes parseable, however during runtime I get warnings.
   
   The code below works but gives warnings as described above.
   ```
   airflow connections add connection_id_1 --conn-uri 
aws://s3/?region_name=eu-west-1&endpoint_url=https%3A%2F%2Fs3.eu-west-1.amazonaws.com
   ```
   
   However I am able to add this connection described above via UI
   <img width="1261" alt="Screenshot 2023-01-09 at 09 58 53" 
src="https://user-images.githubusercontent.com/93520526/211272234-9bae07f7-14d0-43e5-9b6e-55d05059c048.png";>
   The behaviour seems inconsistent between two ways of inserting credentials.
   
   Maybe I missed something in your reply, but can you elaborate more?


-- 
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]

Reply via email to