Replies: 1 comment
-
Problem is solved. In my setup on the build server, the AWS skd uses not my overgiven host (ip). Instead there is a fancy logic which maps my host "http://172.27.0.1:33040" to a DNS name in the following format "http://my-bucket.s3.localhost.localstack.cloud:4566/". So for that path there is no NO_PROXY rule and no network-alias defined. In fact that both containers are in different networks (LocalStack [default], dotnet [specific]), my client cannot connect to LocalStack with exception "Forbidden" but under the hood the message is "Not allowed to connect". Following steps to solve the problem:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have the following setup:
What I do:
My test setup spawns a LocalStack Testcontainer (usage of S3), than starts the application and does a simple 'try-it-out-test' (create bucket, upload some content and download the stuff again).
My LocalStack :
My pipeline job:
My example aws step:
What I want:
The app which is started inside an integration test inside the dotnet container should connect to LocalStack and do some playground stuff which I discribed above. As discribed in the docu https://docs.localstack.cloud/references/network-troubleshooting/endpoint-url/ the last scenario 'From a separate host' is matching to my environment and I used the env variable 'GATEWAY_LISTEN="0.0.0.0"' inside my configuration above.
What happens:
The LocalStack container is running, my app is running and when the code executes the first command (await amazon.PutBucketAsync("my-bucket")) fails with exception
AmazonS3Client 22|2024-12-18T19:25:36.488Z|ERROR|Received error response: [] --> Amazon.S3.AmazonS3Exception: Error making request with Error Code Forbidden and Http Status Code Forbidden. No further error information was returned by the service.
The ConnectionString from LocalStack looks like the following: 'http://172.27.0.1:33040' and is used as ServiceURL for the AWS client
What is the problem ?
Log output from my Azure pipeline
log.txt
Beta Was this translation helpful? Give feedback.
All reactions