Skip to content

Standardize ECS TaskDoneTrigger on region_name and AWS hook parameters#68923

Draft
o-nikolas wants to merge 3 commits into
apache:mainfrom
aws-mwaa:onikolas/aws-base/ecs-trigger
Draft

Standardize ECS TaskDoneTrigger on region_name and AWS hook parameters#68923
o-nikolas wants to merge 3 commits into
apache:mainfrom
aws-mwaa:onikolas/aws-base/ecs-trigger

Conversation

@o-nikolas

Copy link
Copy Markdown
Contributor

TaskDoneTrigger used a non-standard region argument and ignored SSL
verification and botocore configuration. It now uses region_name and accepts
verify and botocore_config like the other Amazon provider triggers, building
both the ECS and CloudWatch-logs hooks with them, and EcsRunTaskOperator
forwards those values when deferring.

This completes the trigger portion of the ECS item in the base-AWS-classes
migration initiative.

related: #35278


Was generative AI tooling used to co-author this PR?
  • Yes — Kiro (claude-opus-4.8)

Generated-by: Kiro (claude-opus-4.8) following the guidelines

TaskDoneTrigger used a non-standard 'region' argument and ignored SSL
verification and botocore configuration. It now uses region_name and accepts
verify and botocore_config like the other Amazon provider triggers, and
EcsRunTaskOperator forwards those values when deferring, completing the trigger
portion of the ECS migration in apache#35278.
@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Jun 24, 2026
Preserve backward compatibility for ECS TaskDoneTrigger after standardizing on
region_name: the old region argument is still accepted as a deprecated alias,
emitting AirflowProviderDeprecationWarning. This keeps existing keyword callers
working and lets deferred-task triggers serialized by older versions deserialize
after upgrade.
@o-nikolas o-nikolas marked this pull request as draft June 24, 2026 01:17
The deprecated region alias is folded into region_name at construction time, so
it intentionally does not round-trip through serialize() -- the same by-design
pattern already used for GKEJobTrigger's pod_name alias.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant