Admiral-Piett / goaws

AWS (SQS/SNS) Clone for Development testing
MIT License
779 stars 144 forks source link

Wrong path and port when adding a new queue #177

Closed Jerome1337 closed 5 years ago

Jerome1337 commented 5 years ago

I'm trying to create a new queue using

aws --endpoint-url http://localhost:4100 sqs create-queue  --queue-name test1

But the result is

{
    "QueueUrl": "http://:/queue/test1"
}

The path and port conbinaise looks wrong. This look not good. I'm just using the Docker image and added awscli to the goaws container.

Did I miss something or this is a new bugs ?

p4tin commented 5 years ago

I do not install the awscli inside the container. The container exposes port 4100 so you can use it from outside the container which gives me the correct results. Can you try that?

--> aws --endpoint-url http://localhost:4100 sqs list-queues
{
    "QueueUrls": [
        ...
    ]
}
--> aws --endpoint-url http://localhost:4100 sqs create-queue --queue-name test1
{
    "QueueUrl": "http://localhost:4100/queue/test1"
}
--> aws --endpoint-url http://localhost:4100 sqs list-queues
{
    "QueueUrls": [
        ...
        "http://localhost:4100/queue/test1", 
        ...
    ]
}
Jerome1337 commented 5 years ago

Ok this is working !

Thanks.