You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AWS emr, we get the public dns name and frequently need to get the instance id to get the private dns. We do this by searching for the public dns directly in the aws console > ec2 page.
I could not find a way to get the instance id from a public dns record using bma. The list of items that the bma instances command searches
Problem
In AWS emr, we get the public dns name and frequently need to get the instance id to get the private dns. We do this by searching for the public dns directly in the aws console > ec2 page.
I could not find a way to get the instance id from a public dns record using
bma
. The list of items that thebma instances
command searcheshttps://github.com/bash-my-aws/bash-my-aws/blob/12109ec65a5c76d8242fd4839c7d89e3b3bfd9d5/lib/instance-functions#L30-L39
does not have the
NetworkInterfaces[0].PrivateIpAddresses[0].Association.PublicDnsName
key so it does not find the records when usingProposed solution
I propose a
bma dns-instance
command that would do exactly this.Or would it be better to add the
NetworkInterfaces[0].PrivateIpAddresses[0].Association.PublicDnsName
key to thebma instances
command ?Related
PR #299
The text was updated successfully, but these errors were encountered: