3 ms·
I've gotten a lot of mileage out of Sigil (https://github.com/danmx/sigil#readme https://github.com/danmx/sigil#readme ) which supports starting sessions via Na
by mdaniel 6y ago
I've gotten a lot of mileage out of Sigil (https://github.com/danmx/sigil#readme https://github.com/danmx/sigil#readme ) which supports starting sessions via Name tag, instance-id, or private-dns-name in order to save one the need to use awscli in a lot of cases; it also supports the handy `sigil ls` to show the connected instances, since trying to start an SSM connection with an instance whose agent is offline produces a dumb error message with start-session
---
as an aside: `function name()` is redundant; the `function name {` syntax is a bashism, `name() {` is the posix syntax
and you may find `aws ec2 wait instance-running` handy instead of the sleep: https://docs.aws.amazon.com/cli/latest/reference/ec2/wait/instance-running.html https://docs.aws.amazon.com/cli/latest/reference/ec2/wait/in...