File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ RUN apt-get install -y software-properties-common && \
11
11
DEBIAN_FRONTEND=noninteractive apt-get update && \
12
12
apt-get install -y bats
13
13
14
+ # Upgrade pip
15
+ RUN pip install -U pip
16
+
14
17
# Install AWS CLI
15
18
RUN pip install awscli --upgrade --user
16
19
17
20
# Install moto: https://github.com/spulec/moto
18
- RUN pip install flask moto moto[server]
21
+ RUN pip install flask moto moto[server] networkx==2.2
19
22
20
23
# Install tools we'll need to create a mock EC2 metadata server
21
24
RUN apt-get install -y net-tools iptables
Original file line number Diff line number Diff line change @@ -190,9 +190,9 @@ function aws_get_eni_private_ip {
190
190
eni_id=" $( aws_get_eni_id " $network_interfaces_output " " $eni_device_index " ) "
191
191
log_info " Looking up private IP address for ENI $eni_id "
192
192
193
- public_ip =$( echo " $network_interfaces_output " | jq -j " .NetworkInterfaces[] | select(.NetworkInterfaceId == \" $eni_id \" ).PrivateIpAddresses[0].PrivateIpAddress" )
193
+ private_ip =$( echo " $network_interfaces_output " | jq -j " .NetworkInterfaces[] | select(.NetworkInterfaceId == \" $eni_id \" ).PrivateIpAddresses[0].PrivateIpAddress" )
194
194
195
- echo " $public_ip "
195
+ echo " $private_ip "
196
196
}
197
197
198
198
# Return the private IP Address of the ENI attached to the given EC2 Instance
You can’t perform that action at this time.
0 commit comments