Skip to content

Can't use local SQS docker #33

@LaraGastaldi

Description

@LaraGastaldi

I'm trying to use my SQS docker as the SQS server, but the package is always sending to AWS server.

My .env:

QUEUE_CONNECTION=sqs-fifo
SQS_FIFO_PREFIX=http://sqs:9324
SQS_FIFO_QUEUE=queuename.fifo
SQS_FIFO_SUFFIX=-local
AWS_DEFAULT_REGION=sa-east-1
SQS_FIFO_DEDUPLICATOR=unique
SQS_FIFO_ALLOW_DELAY=false

My config:

'connections' => [
         'sqs-fifo' => [
            'driver' => 'sqs-fifo',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'prefix' => env('SQS_FIFO_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
            'queue' => env('SQS_FIFO_QUEUE', 'default.fifo'),
            'suffix' => env('SQS_FIFO_SUFFIX', '-tickets'),
            'region' => env('AWS_DEFAULT_REGION', 'sa-east-1'),
            'after_commit' => false,
            'group' => 'default',
            'deduplicator' => env('SQS_FIFO_DEDUPLICATOR', 'unique'),
            'allow_delay' => env('SQS_FIFO_ALLOW_DELAY', false),
        ],
]

When calling dispatch, I get the error:

Error executing "SendMessage" on "https://sqs.sa-east-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://sqs.sa-east-1.amazonaws.com` resulted in a `403 Forbidden` response:

    {"__type":"com.amazon.coral.service#UnrecognizedClientException","message":"The security token included in the request i (truncated...)

     InvalidClientTokenId (Sender): The security token included in the request is invalid. - {"__type":"com.amazon.coral.service#UnrecognizedClientException","message":"The security token included in the request is invalid."}

Shouldn't the prefix parameter be the URL?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions