Closed royge closed 6 years ago
@royge Thanks for the suggestion. Indeed, it seems that it should be added. We will do that for the next release.
I will look at it this week or more probably beginning of March when I am back from some time off. I'll update this issue accordingly.
@royge Now available in master: go get -u github.com/wallix/awless
(and included be in the next release)
Get the command help & examples with awless attach listener -h
.
Perform it from the CLI and let awless do the work through the command prompting. So do awless attach listener
, press ENTER. Then use the TAB completion which will help you find easily any awless alias or resources ARN.
If you want the command to be part of a awless template and run it with awless run ...
it would be for example:
...
list_arn = create listener actiontype=forward port=26257 protocol=TCP ....
attach listener id=$list_arn certificate=@www.mysite.io
...
Let me know how it goes for you, so we can get scheduled it for the next release.
Also awless
aliases are great so if you are not familiar with them have a look at them. And if you are not familiar with awless templates
here would be an advanced example.
(Note: It would be better and less surprising to have attach certificate listener=.... arn=..
but we cannot do it this way as for now. We will improve on that)
@royge When more details on a listener is needed (and especially check if you have attached correctly a certificate) use awless show REF
which get a full picture of the resource.
For a listener you would use the listerner ARN: awless show arn:......
To easily copy/paste a listener's ARN, list them with awless ls listeners --columns id
@simcap Wow! that was so fast!
Similar to
aws elbv2 add-listener-certificates