-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Add AWS operators to create and delete RDS Database #24099
Add AWS operators to create and delete RDS Database #24099
Conversation
c7e8c93
to
627c80b
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.
Can you please implement examples in AIP-47 compatible way? You will find a lot of AIP-47 as examples.
627c80b
to
bbd3156
Compare
Sure, I should have checked this epic 👍 I've just pushed a commit with according changes. |
rds_kwargs={ | ||
"DBName": DB_INSTANCE_NAME, | ||
}, |
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.
If we have db_instance_identifier
why do we need DBName
in rds_kwargs
?
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.
In case with Postgres it's different parameters - db_instance_identifier
identifies the DB instance, while DBName
is the name of the database to create when the DB instance is created.
We can actually omit DBName
, then a database named postgres
is created in the DB instance.
Would be nice also to fix dms example dag to use the operators added by this PRas you can see from the review in #23681 (comment) |
tests/system/providers/amazon/aws/rds/example_rds_db_instance.py
Outdated
Show resolved
Hide resolved
tests/system/providers/amazon/aws/rds/example_rds_db_instance.py
Outdated
Show resolved
Hide resolved
Comments to @vincbeck comments @eskarimov ? |
I agree it'd be nice, however, maybe it'd be better to make in a separate PR together with DAG refactoring making it AIP-47 compatible, in order to keep the scope of this PR not too broad?
Just replied, very nice feedback, I'm going to fix mentioned things in the upcoming days. |
I think that it's not too broad. |
ee5b7a8
to
a11b12d
Compare
@eladkal could you review refactored |
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.
LGTM
@eskarimov can you please address josh comments above?
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
…eleteDbInstanceOperator
… `RdsDeleteDbInstanceOperator`
…RdsDeleteDbInstanceOperator`
Sure, pushing updated and rebased branch. Thank you for the reviews, @josh-fell I'll mark the suggestions above as resolved then. |
a11b12d
to
206e884
Compare
Related: #24099 #25952 ### Summary This PR sets the `template_fields` property on `RdsCreateDbInstanceOperator` and `RdsDeleteDbInstanceOperator` to allow users to programmatically change the database id, instance size, allocated storage, etc.. It also replaces use of `@task` decorated functions with their appropriate operator in system tests. Co-authored-by: D. Ferruzzi <[email protected]>
This PR intends to close #23822 by adding new AWS operators for create and delete RDS database.