wallix / awless

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

add core as one of candidate username for ssh #202

Closed rohit-zabbed closed 6 years ago

rohit-zabbed commented 6 years ago

Can you please add core as in coreos default user for ssh.

simcap commented 6 years ago

Indeed.

It has been some time that I wanted to add also CoreOS when creating an instance. I am looking into that as well.

simcap commented 6 years ago

@rohit-zabbed In the meantime you can try now on the latest master. You should be able to ssh to your coreos instances.

(Will be included in the next 0.1.10 otherwise)

simcap commented 6 years ago

Added CoreOS latest stable only distro support. Meaning you can create latest CoreOS stable instance easily with:

$ awless create instance name=testing-coreos
Please specify (Tab for completion, Enter to skip optionals, Ctrl+C to quit):
The distro query to resolve official community free bare distro AMI from current region. See `awless search images -h`:
instance.distro? coreos:coreos 
...

(or quicker with $ awless create instance name=testing-coreos distro=coreos )

Then ssh to it with just using its name (on condition that awless can find the corresponding AWS ssh key)

$ awless ssh testing-coreos

When doen you can remove everything with a revert:

$ awless revert $(awless log -n1 --id-only)

@rohit-zabbed If it is all good for you let me know I and will close this issue. Thanks!

rohit-zabbed commented 6 years ago

@simcap Looks good, everything works as expected. Thanks