fix(orders-service): add missing SQS/STSD deps to enable SQS messaging #953
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.
The Orders service could not create or publish SQS messages because the AWS SDK modules for
sqsandstswere missing from the pom.xml. This prevented SqsAsyncClient from initializing correctly.Adding these dependencies restores full SQS messaging functionality.
Issue #: Fixes #705
Description of changes:
The Orders service could not create or publish SQS messages because the AWS SDK modules for sqs and sts were missing from the pom.xml. This prevented SqsAsyncClient from initializing correctly.
Adding these dependencies restores full SQS messaging functionality.
Summary
This PR fixes an issue where the Orders service cannot connect to Amazon SQS when RETAIL_ORDERS_MESSAGING_PROVIDER=sqs is used.
Fixes: #705
The root cause was missing AWS SDK dependencies in pom.xml (sqs and sts), preventing the SQS client from initializing and blocking queue resolution/creation.
Root Cause
The AWS SDK v2 requires explicit service modules. The Orders service was missing:
Because these were not included:
Orders could not publish SQS events
What This PR Does
✔Adds required AWS SDK dependencies (sqs, sts)
✔ Restores SQS messaging support in the Orders service
✔ No application code changes
✔ No impact to RabbitMQ users
✔ Works with Docker Compose (env creds) and EKS/EC2 (IAM roles)
Testing
Validated by:
Confirmed:
Additional Notes
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.