Skip to content

LocalStack 3.2.0 with AWS Spring Cloud 2.4.x? #1120

Answered by pcalouche
pcalouche asked this question in Q&A
Discussion options

You must be logged in to vote

@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 to dynamic 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.

@Container
	static LocalStackContainer localstack = new LocalStackContainer(
			DockerImageName.parse("localstack/localstack:3.3.0"))
		.withServices(SQS)
		.withReuse(true)
		.withEnv("SQS_ENDPOINT_STRATEGY", "dynamic");

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pcalouche
Comment options

Answer selected by pcalouche
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1113 on March 29, 2024 21:23.