Fork me on GitHub
#aws
<
2020-12-01
>
viesti11:12:49

+1 for SSM tunneling, it's my go-to tool currently. There's a nice helper for selecting the EC2 instance to connect to https://github.com/disneystreaming/ssm-helpers

viesti11:12:27

there's some hoops to jump, the target instance has to have arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore policy attached and has to have the ssm agent running (current amazon linux 2 ami's have this agent running by default) and also ec2-instance-connect installed (that is installed to current amazon linux 2 ami's as well)

viesti11:12:59

the script then uses the ssh daemon on the target host for port forwarding to remote hosts (ssm agent doen't yet support remote port forwarding)

viesti11:12:54

anyhow, if the hadoop nodes don't explicitly require ssh access between each other, and you need only ssh access to the hosts themselves, then ssm is quite nice (competes with the gcp option)

orestis14:12:29

@viesti thanks for that link, does that replace the clumsy (IMO) need to install a separate plugin to the AWS CLI?

viesti14:12:24

I have the plugin installed so didn't actually know until reading the readme :) > It uses the Amazon-supplied session-manager-plugin binary in combination with the AWS CLI tool to create the actual sessions.

viesti14:12:25

anyways, provides a list of instances and -f tag=value is neat, e.g. -f Name=backend-1