-
Question I realize version Verified the SqsSampleApplicationTests successfully runs before making any changes. Then I set AWS Java SDK version to <aws-java-sdk.version>1.12.583</aws-java-sdk.version> Updated LocalStack image in SqsSampleApplicationTests to: @Container
static LocalStackContainer localstack = new LocalStackContainer(DockerImageName.parse("localstack/localstack:3.2.0")).withServices(SQS).withReuse(true); When running the test I see the following error:
I experienced the same behavior in my applications tests when switching to LocalStack That URL looks odd to me. I appreciate any insight you can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it is more a question about which version of AWS SDK works with which LocalStack version. Perhaps folks from LocalStack can help you? I'll convert it into discussion since it is not really an issue in Spring Cloud AWS. |
Beta Was this translation helpful? Give feedback.
@maciejwalkowiak Your suggestion to ask the LocalStack folks was a good one. It turned out there is an active issue about this and it wasn't a case of an AWS Java SDK mismatch but rather a LocalStackContainer 3.x.x config change.
Setting the
SQS_ENDPOINT_STRATEGY
environment variables todynamic
resolves the URLs correctly in the test example I mentioned above, and in all my application's tests that were failing. The issue reference is localstack/localstack#10024.