feat: add tag support for step function activites #13432
+258
−51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Problem: Terraform AWS provider automatically calls ListTagsForResource after creating resources. When deploying Step Functions with activities, Terraform fails because LocalStack returns ResourceNotFound for activity ARNs, even though the activities were successfully created.
Root Cause: The list_tags_for_resource() function only checked the state_machines store and ignored activities entirely.
Solution: Add tag support for activities following the same pattern used for state machines.
Changes
This implements the TODO comments at lines 1392, 1404, and 1416 in provider.py.
Tests
Added 3 new test methods in test_sfn_api_tagging.py:
✅ test_tag_activity() - Tests tagging activities with various tag lists (empty, single, multiple)
✅ test_untag_activity() - Tests removing tags from activities
✅ test_create_activity_with_tags() - Tests creating activities with initial tags
Related
Closes #13430