Skip to content

Commit

Permalink
Update content/en/user-guide/aws/sqs/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Walker <[email protected]>
  • Loading branch information
thrau and simonrw authored Aug 3, 2023
1 parent f77426f commit 2a33b04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/en/user-guide/aws/sqs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ Additionally, metrics about `Approximate*` messages are send to CloudWatch by de
Through the SQS Query API, Queue URLs become endpoints that can be called via HTTP.
In fact, some SDKs like the Java SDK use the SQS Query API to interact with SQS.
By default, Queue URLs point to `http://localhost:4566`, which can lead to issues when Lambdas or other containers attempt to call these queue URLs directly.
These issues are because a Lambda function runs in another Docker container, and LocalStack is not available at `localhost` in that container.
For example, users of the Java SDK often experience the following error when accessing an SQS queue from their Lambda:
```
2023-07-28 15:04:00 Unable to execute HTTP request: Connect to localhost:4566 [localhost/127.0.0.1] failed: Connection refused (Connection refused): com.amazonaws.SdkClientException
Expand Down

0 comments on commit 2a33b04

Please sign in to comment.