Skip to content

fix: add missing ecs:TagResource permission for ECS tasks #657

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

Merged
merged 1 commit into from
Jul 22, 2025

Conversation

renanwilliam
Copy link
Contributor

Summary

This PR fixes the missing ecs:TagResource permission that causes ECS task deployments to fail when using tags.

Problem

When deploying ECS tasks with tags, the auto-generated IAM policies are missing the ecs:TagResource permission, resulting in an AccessDeniedException.

Solution

Added the missing ecs:TagResource permission to the getEcsPermissions() function.

Fixes #656

🤖 Generated with Claude Code

When using serverless-step-functions to deploy ECS tasks with tags, the auto-generated
IAM policies were missing the ecs:TagResource permission. This caused Step Functions
executions to fail with an AccessDeniedException when attempting to tag ECS tasks.

This commit adds the ecs:TagResource permission to the getEcsPermissions function,
allowing ECS tasks to be properly tagged during execution.

Fixes serverless-operations#656

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copy link

pkg-pr-new bot commented Jul 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@657

commit: 2f84149

@zirkelc zirkelc merged commit 1e7b2f1 into serverless-operations:master Jul 22, 2025
2 checks passed
@renanwilliam renanwilliam deleted the issue_656 branch July 22, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing ecs:TagResource permission in auto-generated IAM policies for ECS tasks
2 participants