Skip to content

Resolve AwsToAwsBaseOperator destination connection after template rendering - #70487

Closed
mitre88 wants to merge 1 commit into
apache:mainfrom
mitre88:fix-aws-to-aws-base-template
Closed

Resolve AwsToAwsBaseOperator destination connection after template rendering#70487
mitre88 wants to merge 1 commit into
apache:mainfrom
mitre88:fix-aws-to-aws-base-template

Conversation

@mitre88

@mitre88 mitre88 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

source_aws_conn_id and dest_aws_conn_id are template fields of AwsToAwsBaseOperator, but the fallback ("dest not set → use source") was resolved in __init__, before Jinja rendering. __init__ now keeps plain assignments (also dropping a duplicated source_aws_conn_id assignment) and the fallback lives in a resolved_dest_aws_conn_id property, which DynamoDBToS3Operator (the only in-repo consumer) reads at execute time. Removes the class from the exemption list.

related: #70296


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5)

Generated-by: Claude Code (Fable 5) following the guidelines

…ndering

source_aws_conn_id and dest_aws_conn_id are template fields, but the
dest-falls-back-to-source resolution ran in __init__, before Jinja
rendering — a templated source_aws_conn_id was copied un-rendered into
dest_aws_conn_id at Dag parse time. Resolve at use time instead.
@mitre88

mitre88 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Closing — #70445 merged an equivalent fix for this class (a dest_aws_conn_id property with the fallback in the getter, which also keeps existing call sites working), removed the exemption entry, and covers the fallback with tests. Nothing left for this PR to add. Thanks for the reviews!


Drafted-by: Claude Code (Fable 5) (no human review before posting)

@mitre88 mitre88 closed this Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants