Add support for connecting using Amazon SSM.

Review Request #14191 — Created Sept. 26, 2024 and updated

Information

fabazon
master

Reviewers

Amazon SSM provides on-demand SSH access to hosts that may not be
exposed to the Internet in any form, adding extra security to
infrastructure.

SSM support can now be enabled by passign use_ssm=True to
EC2RoleDefs. This will result in EC2 instance IDs being returned
instead of hostnames.

This does require ~/.ssh/config to be configured properly for SSM
support, and that env.use_ssh_config = True is enabled in the
fabfile.

Tested this with our deployment infrastructure and verified that
Fabric and Paramiko engaged with SSM and connected.

Summary ID
Add support for connecting using Amazon SSM.
Amazon SSM provides on-demand SSH access to hosts that may not be exposed to the Internet in any form, adding extra security to infrastructure. SSM support can now be enabled by passign `use_ssm=True` to `EC2RoleDefs`. This will result in EC2 instance IDs being returned instead of hostnames. This does require `~/.ssh/config` to be configured properly for SSM support.
3ad75074906426ba496698da71a21afba26a31b0
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. Ship It!
  2.