Skip to content

Standardize ECS TaskDoneTrigger on region_name and AWS hook parameters#68923

Merged
eladkal merged 3 commits into
apache:mainfrom
aws-mwaa:onikolas/aws-base/ecs-trigger
Jun 25, 2026
Merged

Standardize ECS TaskDoneTrigger on region_name and AWS hook parameters#68923
eladkal merged 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.
@o-nikolas o-nikolas marked this pull request as ready for review June 24, 2026 16:59

@SameerMesiah97 SameerMesiah97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Could not find any blocking concerns.

@eladkal eladkal merged commit 4bbcc16 into apache:main Jun 25, 2026
284 checks passed
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.

4 participants