aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.06k stars 326 forks source link

Dynamically get interface name for setting IP address in hosts file #470

Open DanielTeraSky opened 2 years ago

DanielTeraSky commented 2 years ago

Issue #469

Description of changes: Make sure that the interface name is dynamic so that in newer instance types (for example: t3) the IP address will be fetched correctly (interface names have changed from ethX to ensX

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

smhmhmd commented 2 years ago

Thank you for the PR, I will get it tested internally and release it as your contribution.