File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -452,6 +452,7 @@ list-machines:
452452 pubIpv6: $" (ansi red)--" ,
453453 Id: $" (ansi red)--" ,
454454 Type: $" (ansi red)--"
455+ Region: $" (ansi red)--"
455456 }
456457 }
457458
@@ -471,7 +472,7 @@ list-machines:
471472 let machine = ($host | str replace -r ' \.ipv(4|6)$' ' ' )
472473
473474 let update = if ($host | str ends-with " .ipv4" ) {
474- { pubIpv4: $hostData }
475+ { pubIpv4: $hostData, Region: $it.Tag }
475476 } else if ($host | str ends-with " .ipv6" ) {
476477 { pubIpv6: $hostData }
477478 } else {
@@ -799,6 +800,7 @@ ssh-config-example:
799800
800801 Host machine-example-1.ipv4
801802 HostName 1.2.3.5
803+ Tag eu-central-1
802804
803805 Host machine-example-1.ipv6
804806 HostName ff00::01
Original file line number Diff line number Diff line change 683683
684684 Host ${ name } .ipv4
685685 HostName '' ${aws_eip.${ name } [0].public_ip}
686+ Tag ${ nodes . ${ name } . aws . region }
686687
687688 Host ${ name } .ipv6
688689 HostName '' ${length(aws_instance.${ name } [0].ipv6_addresses) > 0 ? aws_instance.${ name } [0].ipv6_addresses[0] : "unavailable.ipv6"}
You can’t perform that action at this time.
0 commit comments