aws_recon 0.2.21 → 0.2.22
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/dynamodb.rb +1 -0
- data/lib/aws_recon/collectors/emr.rb +39 -0
- data/lib/aws_recon/services.yaml +2 -0
- data/lib/aws_recon/version.rb +1 -1
- data/readme.md +2 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a839969b01ed4fa02e233e6ad5a0f2ad6645459f2e714870abd296e7f214ed3
|
4
|
+
data.tar.gz: bb036b292e1575be7d13d1c2d037903f3bf923f7c5a61ebffbfff38fdea3cf91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8114eda9813062479cd464d33a9fca5efb538a32aa255443262e30aee18b8141f986a5c53d5d0fdf0cc83a90554686e1bfea37e63fe708409c344858b7d15c2b
|
7
|
+
data.tar.gz: 8fa314c5aff5d87fe277031adedd407b88eb75879096a006e270c981dbd5f9641282752cf62f38b8d2393b9b9254490a871c2e0a0a940109b7ce75e938ed97b9
|
@@ -29,6 +29,7 @@ class DynamoDB < Mapper
|
|
29
29
|
struct = OpenStruct.new(@client.describe_table({ table_name: table_name }).table.to_h)
|
30
30
|
struct.type = 'table'
|
31
31
|
struct.arn = struct.table_arn
|
32
|
+
struct.continuous_backups_description = @client.describe_continuous_backups({ table_name: table_name }).continuous_backups_description.to_h
|
32
33
|
|
33
34
|
resources.push(struct.to_h)
|
34
35
|
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
class EMR < Mapper
|
2
|
+
#
|
3
|
+
# Returns an array of resources.
|
4
|
+
#
|
5
|
+
def collect
|
6
|
+
resources = []
|
7
|
+
|
8
|
+
#
|
9
|
+
# get_block_public_access_configuration
|
10
|
+
#
|
11
|
+
@client.get_block_public_access_configuration.each do |response|
|
12
|
+
log(response.context.operation_name)
|
13
|
+
|
14
|
+
struct = OpenStruct.new(response.block_public_access_configuration.to_h)
|
15
|
+
struct.type = 'configuration'
|
16
|
+
|
17
|
+
resources.push(struct.to_h)
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# list_clusters
|
22
|
+
#
|
23
|
+
@client.list_clusters.each_with_index do |response, page|
|
24
|
+
log(response.context.operation_name, page)
|
25
|
+
|
26
|
+
response.clusters.each do |cluster|
|
27
|
+
log(response.context.operation_name, cluster.id)
|
28
|
+
|
29
|
+
struct = OpenStruct.new(@client.describe_cluster({ cluster_id: cluster.id }).cluster.to_h)
|
30
|
+
struct.type = 'cluster'
|
31
|
+
struct.arn = cluster.cluster_arn
|
32
|
+
|
33
|
+
resources.push(struct.to_h)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
resources
|
38
|
+
end
|
39
|
+
end
|
data/lib/aws_recon/services.yaml
CHANGED
data/lib/aws_recon/version.rb
CHANGED
data/readme.md
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.2.
|
4
|
+
version: 0.2.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Larsen
|
@@ -209,6 +209,7 @@ files:
|
|
209
209
|
- lib/aws_recon/collectors/elasticloadbalancing.rb
|
210
210
|
- lib/aws_recon/collectors/elasticloadbalancingv2.rb
|
211
211
|
- lib/aws_recon/collectors/elasticsearch.rb
|
212
|
+
- lib/aws_recon/collectors/emr.rb
|
212
213
|
- lib/aws_recon/collectors/firehose.rb
|
213
214
|
- lib/aws_recon/collectors/guardduty.rb
|
214
215
|
- lib/aws_recon/collectors/iam.rb
|