aws_recon 0.5.17 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws_recon/collectors/ec2.rb +30 -0
- data/lib/aws_recon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c15eafbd64e2a41405c27df26f663d967fb600fe92928414a45f7278ce4a2f55
|
|
4
|
+
data.tar.gz: 71455e2d1dfc37993303ec58704ddffd87a05cd3713562c8b3bd42177bdfb7ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe48606bd7de9da79ddadf19c6414492282395e5776eec11f5be3dbe6fc01167436af2447c92db88dd3cf2956f05f020e8ef558a3392544b0eb5c1ae626c3ba2
|
|
7
|
+
data.tar.gz: d82ad1c04091c3137f33a82d9485ecfd6e78a35ba7068e3e8cc59ffe9307dc910fa21fbb567b6da11b2f6cde4374d111cf911cc73923359585aa29bddfb863b6
|
|
@@ -318,6 +318,36 @@ class EC2 < Mapper
|
|
|
318
318
|
resources.push(struct.to_h)
|
|
319
319
|
end
|
|
320
320
|
end
|
|
321
|
+
|
|
322
|
+
#
|
|
323
|
+
# describe_vpc_endpoints
|
|
324
|
+
#
|
|
325
|
+
@client.describe_vpc_endpoints.each_with_index do |response, page|
|
|
326
|
+
log(response.context.operation_name, page)
|
|
327
|
+
|
|
328
|
+
response.vpc_endpoints.each do |point|
|
|
329
|
+
struct = OpenStruct.new(point.to_h)
|
|
330
|
+
struct.type = 'vpc_endpoint'
|
|
331
|
+
struct.arn = "arn:aws:ec2:#{@region}:#{@account}:vpc_endpoint/#{point.vpc_endpoint_id}" # no true ARN
|
|
332
|
+
|
|
333
|
+
resources.push(struct.to_h)
|
|
334
|
+
end
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
#
|
|
338
|
+
# describe_managed_prefix_lists
|
|
339
|
+
#
|
|
340
|
+
@client.describe_managed_prefix_lists.each_with_index do |response, page|
|
|
341
|
+
log(response.context.operation_name, page)
|
|
342
|
+
|
|
343
|
+
response.prefix_lists.each do |list|
|
|
344
|
+
struct = OpenStruct.new(list.to_h)
|
|
345
|
+
struct.type = 'prefix_list'
|
|
346
|
+
struct.arn = list.prefix_list_arn
|
|
347
|
+
|
|
348
|
+
resources.push(struct.to_h)
|
|
349
|
+
end
|
|
350
|
+
end
|
|
321
351
|
end
|
|
322
352
|
|
|
323
353
|
resources
|
data/lib/aws_recon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws_recon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Larsen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-09-
|
|
12
|
+
date: 2021-09-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aws-sdk
|