-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
[AIRFLOW-3698] Add documentation for AWS Connection #4514
[AIRFLOW-3698] Add documentation for AWS Connection #4514
Conversation
bb98cc2
to
46b95a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is required - it is possibly to specify the region via the extra field of the connection: {"region_name": "ap-southeast-2"}
You probably didn't miss it - it's a hole in the docs :( |
46b95a8
to
e9e204a
Compare
I've updated the PR to instead add a bit in the Managing Connections page in the docs, please let me know if there's a more suitable home for it or if anything needs rewording (: |
Could you provide a description on how to set up a connection via environment variables? |
@mik-laj Oh cool, I didn't know you could do that! I'm afraid I haven't set up the AWS Connection that way before so I'm not aware of any AWS-specific things you might need to specify when setting it up that way. |
@mik-laj What specific things do you need? |
Since the query parameter bit is the same as for other Connection types, perhaps it makes more sense for the general case to be documented in the "Creating a Connection with Environment Variables" section to avoid repetition? I'll add the general default |
This is already described when my PR is accepted.I personally think that this is not enough. Unfortunately people are lazy and if they are to write a long command, they will rather look for it, only to copy it. I see it myself. It's easy to make a mistake, so I type in Google to get a full and ready command. |
I do not think that it is worth writing a list of operators and hooks. just mention the default conn_id is enough |
Password (optional) | ||
Specify the AWS secret access key. | ||
|
||
Extra (optional) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it may be good to mention that users can specify endpoint in Extra
section by giving "host". This will be useful in cases like they're using S3-compatible services (but not AWS service.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I missed that, thanks for the spot!
Codecov Report
@@ Coverage Diff @@
## master #4514 +/- ##
==========================================
+ Coverage 73.81% 74.12% +0.31%
==========================================
Files 421 421
Lines 27662 27700 +38
==========================================
+ Hits 20418 20532 +114
+ Misses 7244 7168 -76
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #4514 +/- ##
==========================================
+ Coverage 73.81% 74.12% +0.31%
==========================================
Files 421 421
Lines 27662 27700 +38
==========================================
+ Hits 20418 20532 +114
+ Misses 7244 7168 -76
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy. Any further comments @XD-DENG?
@ashb , LGTM. Thanks @danabananarama |
Make sure you have checked all steps below.
Jira
Description
This PR is to allow setting the AWS region in theEmrJobFlowSensor
so that we can sense EMR job flow completion in any region.The AWS region setting functionality is available via the
extra
param in the Connection class, so adding a section in the docs to describe thisTests
Amending test, did not add new test for functionality as it's essentially just persisting a new init param. Let me know if a new test needs to be added!Doc change only
Commits
Documentation
Code Quality
flake8