We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
aws_get_eni_private_ip
1 parent 347d030 commit c7de3ddCopy full SHA for c7de3dd
modules/bash-commons/src/aws.sh
@@ -190,9 +190,9 @@ function aws_get_eni_private_ip {
190
eni_id="$(aws_get_eni_id "$network_interfaces_output" "$eni_device_index")"
191
log_info "Looking up private IP address for ENI $eni_id"
192
193
- public_ip=$(echo "$network_interfaces_output" | jq -j ".NetworkInterfaces[] | select(.NetworkInterfaceId == \"$eni_id\").PrivateIpAddresses[0].PrivateIpAddress")
+ private_ip=$(echo "$network_interfaces_output" | jq -j ".NetworkInterfaces[] | select(.NetworkInterfaceId == \"$eni_id\").PrivateIpAddresses[0].PrivateIpAddress")
194
195
- echo "$public_ip"
+ echo "$private_ip"
196
}
197
198
# Return the private IP Address of the ENI attached to the given EC2 Instance
0 commit comments