Replies: 1 comment
|
Hi @ztawfique, thank you for the report. I was able to reproduce issue 1 against AWS too, so it's not a LocalStack bug. I think this wait present by design in Terraform to accommodate SQS's eventual consistency. For issue 2, I made a small fix to LocalStack to make it return HTTP 4xx when invalid account IDs or unsupported regions are part of the request. This will prevent IaS frameworks from going into indefinite retries. Let us know if you have any other issues. |
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.
Current behavior
Two related problems on 2026.x images (reproduced on
2026.7.1and a recent dev build, both started with an auth token), using the Pulumi AWS provider (embeds terraform-provider-aws; reproduced on 7.32.0 and 7.40.0):1. Every SQS operation from the provider takes almost exactly 25 seconds.
aws.sqs.Queuecreates andaws.sqs.QueuePolicyattachments each take ~25s. The AWS CLI against the same running instance completes the equivalent calls sub-second, and the same program against legacylocalstack/localstack:3(3.8.1) is also sub-second. This happens with a correctly resolved account ID (noskip_requesting_account_id).2. With
aws:skipRequestingAccountId: "true"in the stack config, SNS topic creation never completes. The provider's post-createGetTopicAttributescall fails with:The provider retries this 25 times with growing backoff, retained container logs from one affected environment show single topics failing after 3103s and 3192s (~52 minutes) of retries, which presents as an indefinite hang. Removing
skip_requesting_account_idfixes the topics (0.14s). I'm aware the docs stopped recommending that flag (localstack-docs#359); reporting it because a 500 + provider retry storm turns a config issue into a multi-hour silent hang, a clear 4xx error would fail fast instead.Expected behavior
Provider-originated SQS operations complete in roughly the same time as the equivalent CLI calls, an empty account ID produces a fast, clear client error rather than a retried 500.
Steps to reproduce
Minimal Pulumi program (Python):
Stack config (issue 1, note no skip_requesting_account_id):
docker run -d -p 4566:4566 -e LOCALSTACK_AUTH_TOKEN=... -e SERVICES=sns,sqs,kms,iam,sts localstack/localstack:2026.7.1pulumi upwithAWS_ENDPOINT_URL=http://localhost:4566(file backend).aws --endpoint-url http://localhost:4566 sqs create-queue --queue-name cli-qreturns immediately.aws:skipRequestingAccountId: "true"to the config and re-run, the topic now hangs in the GetTopicAttributes retry loop with the 500 above.Environment
2026.7.1:3eefc2927(auth token configured), also a 2026.5 dev build, also reproduced onlocalstack-pro:latestfrom a second, unrelated project (provider 7.32.0)localstack/localstack:3(3.8.1)pulumi/pulumi:latestcontainerSERVICES=sns,sqs,kms,iam,stsNotes
The uniform ~25s on SQS regardless of operation suggests an internal retry/timeout on some auxiliary step for provider-shaped requests. Happy to re-run with
DEBUG=1/LS_LOG=traceand attach logs.All reactions