-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Add documentation about cli add connection and AWS connection URI
#28852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
|
@aru-trackunit the actual problem in cli command, not in We should fix this function: airflow/airflow/cli/commands/connection_command.py Lines 134 to 137 in 45dd0c4
|
|
@Taragolis ok, I will revert my changes and update only docs. As a side note: I am not a python developer and I find contributing pretty difficult. Especially setting up the environment and running tests. When running Steep starting learning curve, just to make a few line changes. Probably I know to little about the ecosystem to propose solution, but the problems I have faced discourage me from contributing. Don't get me wrong, I am trying to not complain just show my experience. |
Contribution to documentation it still important part, personally I think that documentation part more important rather than code.
No problem if you are not feel comfortable someone could pick up part for solve actual issue. I have a plan to work on it in the next couple days if someone not pick it up. The documentation part is still important. Just one suggestion it would be nice also add info about issue with adding connection by URI in cli into the Amazon Web Services Connection page. We mentioned here that user could use ❯ airflow connections add sample-aws-conn --conn-uri "aws://"
The URI provided to --conn-uri is invalid: aws://I could say it is not a common way to add connection by cli as URI because nobody mentioned it before and users could add it by parts or since airflow 2.3 as json (doc) however it nice that we know that we have this bug.
Interesting, I thought we solve issue when
|
|
Sure!
I am open to give you more input if needed |
@ferruzzi @vincbeck @o-nikolas guys, I'm not familiar with system tests is it expected that system tests tried to obtain credentials? |
|
Yes. System tests which need external values (example here) try to fetch these values in SSM parameter store unless they are defined as environment variable. See logic here. It seems like we are already handling the case when no credentials is provided (here). We might want to update this logic to handle the case when the credentials do not have enough permissions to read parameters from SSM |
@ when login, password, host, port is not givenadd connection and AWS connection URI
Co-authored-by: Andrey Anshin <Andrey.Anshin@taragol.is>
docs/apache-airflow-providers-amazon/logging/s3-task-handler.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Xiaodong DENG <xd.deng.r@gmail.com>
|
@Taragolis I've seen you added another PR. Is the docs that I wrote still relevant or this PR should be closed? |
|
If I’m reading the linked issue correctly, this is fixed in main, right? In that case we should only add this to older versions. Or is there something I misunderstand? |
|
@aru-trackunit Yeah this PR still relevant, because #28922 in main and potentially would include in 2.5.2 (or later), however latest version of Amazon Provider has requirement AIrflow 2.3+. So would be nice to have this info for users who will use old version of Airflow |
|
Awesome work, congrats on your first merged pull request! |
relates to: #28766
I believe that this is a bug in the
get_conn_urimethod but I am not sure whether this is the best approach towards it.Happy to make only documentation changes so everyone else doesn't face the same problem