Skip to content

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

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

Closed
wants to merge 1 commit into from

Conversation

renanwilliam
Copy link
Owner

Summary

  • Adds the missing ecs:TagResource permission to auto-generated IAM policies for ECS tasks
  • Updates corresponding tests to verify the new permission is included

Problem

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.

Solution

Added ecs:TagResource to the list of permissions in the getEcsPermissions() function in lib/deploy/stepFunctions/compileIamRole.js.

Test plan

  • All existing tests pass
  • Updated tests to verify the new permission is included in the generated IAM policies

Fixes serverless-operations#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 <noreply@anthropic.com>
@renanwilliam
Copy link
Owner Author

@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
1 participant