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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f284896f9397e44d7662775c85b1f4363bcbc284420a248bc936b80ddef6d5e8
4
- data.tar.gz: 572b909d6d5bce44d908f70204e3d511cbfae1d5ed8574a99ffe0d7559f836b3
3
+ metadata.gz: 4a839969b01ed4fa02e233e6ad5a0f2ad6645459f2e714870abd296e7f214ed3
4
+ data.tar.gz: bb036b292e1575be7d13d1c2d037903f3bf923f7c5a61ebffbfff38fdea3cf91
5
5
  SHA512:
6
- metadata.gz: dc68e292ca1d346e8313117d6f93ebe0587fdf61b735b445ec6b90bd6d4c5c4d2a0165f2a47d6bcf57cb046b7a8e1dee769120f0ff569fe613f3930afdad9dac
7
- data.tar.gz: 3f67fa10f1286a1eb9f5d5a1d56bc2ccb6dc5b6a9e7a9324b991e1f468f2fd41000081d1aa9f20a723ae17471b3e3a41463bc870e8e94dcd6e21bfb02fdcb0e6
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
@@ -39,6 +39,8 @@
39
39
  - ap-southeast-1
40
40
  - name: ElastiCache
41
41
  alias: elasticache
42
+ - name: EMR
43
+ alias: emr
42
44
  - name: IAM
43
45
  global: true
44
46
  alias: iam
@@ -1,3 +1,3 @@
1
1
  module AwsRecon
2
- VERSION = "0.2.21"
2
+ VERSION = "0.2.22"
3
3
  end
data/readme.md CHANGED
@@ -250,8 +250,9 @@ AWS Recon aims to collect all resources and metadata that are relevant in determ
250
250
  - [x] ECR
251
251
  - [x] ECS
252
252
  - [x] EFS
253
- - [x] ELB
254
253
  - [x] EKS
254
+ - [x] ELB
255
+ - [x] EMR
255
256
  - [x] Elasticsearch
256
257
  - [x] ElastiCache
257
258
  - [x] Firehose
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.21
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