awless icon indicating copy to clipboard operation
awless copied to clipboard

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

Open dhagberg opened this issue 7 years ago • 4 comments

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.

dhagberg avatar Jul 24 '18 20:07 dhagberg

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

hbi-wallix avatar Aug 22 '18 08:08 hbi-wallix

It would be awesome to have the support

rajasoun avatar Dec 05 '18 12:12 rajasoun

Are there any plans to implement this ?

tmhdgsn avatar May 28 '19 10:05 tmhdgsn

Also interested in this. Thanks.

jjzazuet avatar Dec 26 '19 06:12 jjzazuet