Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pcalouche opened this issue Mar 21, 2024 · 1 comment
Closed

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

pcalouche opened this issue Mar 21, 2024 · 1 comment

Comments

@pcalouche
Copy link

pcalouche commented Mar 21, 2024

Question

I realize version 2.4.x is no longer supported, but I was curious if it can work with LocalStack 3 since we're transitioning between AWS Spring Cloud versions at my company. I tried the following from the 2.4.x branch:

Verified the SqsSampleApplicationTests successfully runs before making any changes.

Then I set AWS Java SDK version to 1.12.583 in https://github.com/awspring/spring-cloud-aws/blob/2.4.x/spring-cloud-aws-dependencies/pom.xml#L35

<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:

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to sqs.us-east-1.localhost.localstack.cloud:4566 [sqs.us-east-1.localhost.localstack.cloud/127.0.0.1] failed: Connection refused (Connection refused)

I experienced the same behavior in my applications tests when switching to LocalStack 3.2.0.

That URL looks odd to me. I appreciate any insight you can provide.

@maciejwalkowiak
Copy link
Contributor

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.

@awspring awspring locked and limited conversation to collaborators Mar 29, 2024
@maciejwalkowiak maciejwalkowiak converted this issue into discussion #1120 Mar 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants