This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
servicediscovery compatability issue with localstack #2556
Labels
You can continue the conversation there. Go to discussion →
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
DiscoverInstances prefixes "data-" to the hostname, rendering localhost (specifically localstack) tests useless, as the hostname "data-localhost" doesn't exist.
Expected Behavior
I would like to use all servicediscovery functions. I'm not sure why others work and DiscoverInstances specifically does this
Current Behavior
I end up with an error like this:
Reproduction Steps
localstack requires an authenticated docker image (localstack-pro) to run, so probably reproduction won't help as much, but the command that fails looks like this:
Possible Solution
maybe there is a way to avoid this part of the stack. I don't mind a workaround for testing.
Additional Information/Context
where the prefix happens: https://github.com/aws/aws-sdk-go-v2/blob/main/service/servicediscovery/api_op_DiscoverInstances.go#L193
AWS Go SDK V2 Module Versions Used
Compiler and Version used
go version go1.22.1 darwin/arm64
Operating System and version
macOS 14.4
The text was updated successfully, but these errors were encountered: