Skip to content

Fix localstack foreach syntax error, improve s3/list-all output (v2.2.10)#47

Merged
AntonioCS merged 1 commit intomainfrom
fix/localstack-foreach-syntax-error
Jan 6, 2026
Merged

Fix localstack foreach syntax error, improve s3/list-all output (v2.2.10)#47
AntonioCS merged 1 commit intomainfrom
fix/localstack-foreach-syntax-error

Conversation

@AntonioCS
Copy link
Owner

Summary

  • Fix bash syntax error in localstack/s3/list-all and localstack/sqs/purge-all targets
  • Using $(foreach) in recipes with .ONESHELL caused malformed shell when mb_invoke produced multi-line output
  • Moved iteration logic to external shell scripts for cleaner execution
  • Improved s3/list-all output with tree view, human-readable file sizes, and timestamps

Changes

  • modules/cloud_providers/localstack/localstack.mk - Simplified targets to call scripts
  • modules/cloud_providers/localstack/scripts/s3-list-all.sh - New script with tree view
  • modules/cloud_providers/localstack/scripts/sqs-purge-all.sh - New script for queue purging
  • CHANGELOG.md - Added v2.2.10 entry

Trello

https://trello.com/c/JJey0zH9

Test plan

  • Tested localstack/s3/list-all - works correctly with tree view output

….10)

- localstack/s3/list-all and localstack/sqs/purge-all caused bash syntax
  errors when $(foreach) in recipes combined with .ONESHELL and mb_invoke
- Moved iteration logic to external shell scripts
- s3-list-all.sh now shows tree view with human-readable sizes and timestamps
@AntonioCS AntonioCS merged commit bd1f5b8 into main Jan 6, 2026
1 check passed
@AntonioCS AntonioCS deleted the fix/localstack-foreach-syntax-error branch January 6, 2026 17:39
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.

1 participant