-
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
Set template_fields on RDS operators #26005
Set template_fields on RDS operators #26005
Conversation
@@ -41,35 +43,6 @@ def create_sns_topic(env_id) -> str: | |||
return boto3.client('sns').create_topic(Name=f'{env_id}-topic')['TopicArn'] | |||
|
|||
|
|||
@task | |||
def create_rds_instance(db_name, instance_name) -> None: |
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 made the same updates in each system test file
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.
Thanks for this!
@o-nikolas @vincbeck @ferruzzi @potiuk |
Co-authored-by: D. Ferruzzi <[email protected]>
Cool, thanks for the change. LGTM. |
@o-nikolas @vincbeck @ferruzzi @potiuk |
Related: #24099 #25952
Summary
This PR sets the
template_fields
property onRdsCreateDbInstanceOperator
andRdsDeleteDbInstanceOperator
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.Todo
template_fields
to RDS operators