pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.82k stars 372 forks source link

AWS SSM Session Connector #990

Open bonovoxly opened 1 year ago

bonovoxly commented 1 year ago

Is your feature request related to a problem? Please describe

While SSH can be great, there are times when AWS EC2 instances are private. AWS supports SSM connections, where you connect via HTTPS through AWS. It's great; no bastion SSH host, no VPN. Access is controlled via AWS IAM polices.

Ansible has this feature https://docs.ansible.com/ansible/latest/collections/community/aws/aws_ssm_connection.html

It would be incredibly useful. It seems like it's a bit difficult to port in your own connector (https://github.com/Fizzadar/pyinfra/issues/977), so I'm putting this request out there to see if anyone has done this or if this feature has been considered.

Describe the solution you'd like

Support a connector for AWS SSM session connection instead of SSH.

Fizzadar commented 1 year ago

This would be an excellent addition! Not heard of anyone implementing this yet so in need of an owner!