Skip to content

feat(ecs-patterns): allow specifying task role for QueueProcessingFargateService and QueueProcessingEc2Service#37336

Open
syukawa-gh wants to merge 2 commits intoaws:mainfrom
syukawa-gh:feat/ecs-patterns-queue-processing-task-role-clean-v2
Open

feat(ecs-patterns): allow specifying task role for QueueProcessingFargateService and QueueProcessingEc2Service#37336
syukawa-gh wants to merge 2 commits intoaws:mainfrom
syukawa-gh:feat/ecs-patterns-queue-processing-task-role-clean-v2

Conversation

@syukawa-gh
Copy link
Copy Markdown
Contributor

Added taskRole property to QueueProcessingServiceBaseProps, allowing users to specify a custom IAM role for the ECS task.

  • Added validation to prevent specifying both taskRole and taskDefinition
  • Added unit tests including validation test
  • Added integ test (snapshot to be generated by CI)
  • Updated README with example

Closes #16297


Supersedes #37320 (rebased on latest main, addressed review comments from @alvazjor)

…gateService and QueueProcessingEc2Service

Added taskRole property to QueueProcessingServiceBaseProps, allowing
users to specify a custom IAM role for the ECS task. Also added
validation to prevent specifying both taskRole and taskDefinition.

Closes aws#16297
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Mar 24, 2026
@github-actions github-actions bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 labels Mar 24, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team March 24, 2026 00:44
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

(This review is outdated)

@aws-cdk-automation aws-cdk-automation added the pr/needs-further-review PR requires additional review from our team specialists due to the scope or complexity of changes. label Mar 24, 2026
@aws-cdk-automation aws-cdk-automation dismissed their stale review March 24, 2026 01:29

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 pr/needs-further-review PR requires additional review from our team specialists due to the scope or complexity of changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(ecs-patterns): QueueProcessingFargateService - Allow task role to be specified

3 participants