aws_public_ips 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws_public_ips/checks/ec2.rb +7 -1
- data/lib/aws_public_ips/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b608120656580ee5ca0e484ae61cb13b23de01a0
|
4
|
+
data.tar.gz: 37d6504528d19226f70b721cd0abf67dec0f7099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '091a3520f52d956adfbf41682d0b00d3a69278337a285518837e8177752f21388d40142908a3813975f25e266e17cbb71e5e93ba79617baa0cec8c9b7c4f9b4e'
|
7
|
+
data.tar.gz: b4569e09c489fa9e61927c838e98369afc248f21a4c89ac85dc0a6e53d44c315d51d9d64a8402ceec1c447e2f069c1eda0360f4c4cd3be1a4fc631665667214c
|
@@ -20,7 +20,13 @@ module AwsPublicIps
|
|
20
20
|
# EC2-Classic instances have a `public_ip_address` and no `network_interfaces`
|
21
21
|
# EC2-VPC instances both set, so we uniq the ip addresses
|
22
22
|
ip_addresses = [instance.public_ip_address].compact + instance.network_interfaces.flat_map do |interface|
|
23
|
-
public_ip =
|
23
|
+
public_ip = []
|
24
|
+
|
25
|
+
interface.private_ip_addresses.flat_map do |private_ip|
|
26
|
+
if private_ip.association && private_ip.association.public_ip
|
27
|
+
public_ip << private_ip.association.public_ip
|
28
|
+
end
|
29
|
+
end
|
24
30
|
public_ip + interface.ipv_6_addresses.map(&:ipv_6_address)
|
25
31
|
end
|
26
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_public_ips
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkadiy Tetelman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-apigateway
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.
|
187
|
+
version: 0.65.0
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0.
|
194
|
+
version: 0.65.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: webmock
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
253
|
version: '0'
|
254
254
|
requirements: []
|
255
255
|
rubyforge_project:
|
256
|
-
rubygems_version: 2.
|
256
|
+
rubygems_version: 2.6.14
|
257
257
|
signing_key:
|
258
258
|
specification_version: 4
|
259
259
|
summary: A library/cli to fetch all public IP addresses associated with an AWS account
|