Closed aadamsx closed 7 years ago
@aadamsx In order to update the inbound source of a sgroup you can do:
awless update securitygroup id=YOUR_ID inbound=authorize protocol=tcp cidr=0.0.0.0/0 portrange=22
This will work on the latest master. If you use binary releases it will be available in the 0.0.15 (probably released today).
Let me know if that does solve your issues.
Thanks.
I'm on awless version=0.0.17
I do this:
> awless update securitygroup id=sg-12345cc inbound=authorize protocol=tcp portrange=22 cidr=298.98.55.36/32
and get the following error:
Error: expect either 'inbound' or 'outbound' parameter
@aadamsx Yes a bug surreptitiously crept into the 0.0.17! So if you pull the master it will work (go get -u github.com/wallix/awless
). I just tested it.
Beginning of next week we will release the 0.0.18 with that fix and other features.
Sorry, we introduced a bug in 0.0.17 that may cause this problem. This should be fixed on ˋmasterˋ. You can either test with the code on ˋmasterˋ, either waiting 0.0.18 that should be released next week.
I'm using brew for this, is it possible to change the version with brew? If not, I'll just use the website to change the security group this time.
No. Unfortunately, we will not be able to update the brew version until 0.0.18 is finalized.
After a go get -u
you could make an alias alias aw=$GOPATH/bin/awless
temporarily to work with the tip version
My IP always change on the box I use to upload to my EC2 instance. In these cases I go into my respective Security Group and change the Inbound source to my new IP and everything works nicely again.
It would be great if awless allowed for this.
So far I can get a list of my security groups like so:
$ awless list securitygroups
... and it displays the security group in question. How do I get into that to change the inbound source on a particular type (ssh in my case) for a security group?
(super useful and awesome lib by the way)