8000 bug: queue is ambiguous, got region us-east-1 from request · Issue #7869 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content
bug: queue is ambiguous, got region us-east-1 from request #7869
Closed
@ArchieY393

Description

@ArchieY393

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

version: '3.7'

services:
    localstack:
        image: localstack/localstack:latest
        environment:
            - DEBUG=1
            - SERVICES=s3,sqs
            - AWS_DEFAULT_REGION=us-east-1
            - AWS_REGION=us-east-1
            - AWS_ACCESS_KEY_ID=****
            - AWS_SECRET_ACCESS_KEY=****
            - LAMBDA_EXECUTOR=docker
            - HOSTNAME_EXTERNAL=localhost
            - SQS_ENDPOINT_STRATEGY=path
        ports:
            - "4566:4566"
        volumes:
            - ../docker/localstack/init:/etc/localstack/init/ready.d/
    example-service:
        build:
            context: ..
            dockerfile: Dockerfile
        entrypoint:
            - /example-service/wait-for-it.sh
            - http://localstack:4566/upload/test.txt
            - http://localstack:4566/_localstack/health
            #- http://localstack:4566/000000000000/queue-name
            - http://localstack:4566/queue/us-east-1/000000000000/queue-name
            # - http://us-east-1.queue.localhost.localstack.cloud:4566/000000000000/queue-name
            - --
        env_file: ../env/example


The localstack comes up fine, but the example-service fails to come up as it can't see the queue http://localstack:4566/queue/us-east-1/000000000000/queue-name and it dumps the following logs:
localstack_1        | 2023-03-15T11:35:35.847  INFO --- [   asgi_gw_0] localstack.request.http    : GET /queue/us-east-1/000000000000/cvl_production_feed_importer_feed_ready => 404
localstack_1        | 2023-03-15T11:35:36.889  INFO --- [   asgi_gw_6] localstack.request.http    : GET /queue/us-east-1/000000000000/cvl_production_feed_importer_feed_ready => 404
 
where as, when I try to use the queue http://localstack:4566/000000000000/queue-name  it dumps the following logs:
localstack_1        | 2023-03-14T21:54:10.489 DEBUG --- [   asgi_gw_0] l.services.sqs.query_api   : Region of queue URL http://localstack:4566/000000000000/queue-name is ambiguous, got region us-east-1 from request

I've tried different queue URLs by setting the `SQS_ENDPOINT_STRATEGY` to `path/domain` but no luck. I do have S3 configured and it comes up fine. 

Expected Behavior

SQS to come up fin 5C82 e. If I use the localstack image 0.12.13, it comes up straight away. This issue is blocking me to use any of the localstack latest features.

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

Use the docker-compose above and you should be able to see the issue.

Environment

- OS:Ubuntu 20.04
- LocalStack:latest

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0