wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.98k stars 263 forks source link

Document or provide mechanism to set --endpoint like aws cli #227

Open dhagberg opened 6 years ago

dhagberg commented 6 years ago

It would be useful if awless had a mechanism to set the endpoint (and region for signature reasons) to be able to use awless against localstack (https://github.com/localstack/localstack) for testing.

For instance, this works with aws cli:

export AWS_ACCESS_KEY_ID=localstack
export AWS_SECRET_ACCESS_KEY=localstack
aws --endpoint-url=http://localhost:4576 --region us-east-1 sqs create-queue --queue-name testq
{
    "QueueUrl": "http://localhost:4576/queue/testq"
}

Where awless appears to not accept --endpoint or --endpoint-url:

awless list queues --endpoint-url http://localhost:4576 --aws-region us-east-1
... usage info/error...
awless list queues --endpoint http://localhost:4576 --aws-region us-east-1
... usage info/error...
awless list queues --aws-endpoint http://localhost:4576 --aws-region us-east-1
... usage info/error...
awless list queues --aws-endpoint-url http://localhost:4576 --aws-region us-east-1
... usage info/error...

Am I missing something in the docs or is this not an available feature? I did not find a documented feature looking through the CLI docs/help output, while it looks like this may be configurable at the code level.

hbi-wallix commented 6 years ago

Thanks for the suggestion. Indeed, we are looking at localstack for testing purposes as well.

rajasoun commented 5 years ago

It would be awesome to have the support

tmhdgsn commented 5 years ago

Are there any plans to implement this ?

jjzazuet commented 4 years ago

Also interested in this. Thanks.