aws_recon 0.2.31 → 0.2.36

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1057bb503b9bb209296e646212a72f4f18d974143455396f97635c0f584cb548
4
- data.tar.gz: c77f77f73d77451771f8a8589b68a3787b3084fb54cfe97a6e2833c9c32d96bf
3
+ metadata.gz: 62093b7a66219dac2bd3ccc799808c28c1581b7e94ea3eebc3f86b7263e8e82c
4
+ data.tar.gz: 64f2ff5a86901e57fa5786c180251dd72ba0c8672ca38e1aba93f3eb65d5efec
5
5
  SHA512:
6
- metadata.gz: 99f9d4bb4af09f223fb624065a99cd2a5f3b7f7cd2e44ff02c7b42b02b13e380462a067e0e20d5b76bccad41fc7a4dc50f2e06b09a5ad45db65aca2beb3c196a
7
- data.tar.gz: a2029d5ef893133b631c0939cb6fd78556fde610c58261a085a54d338210609f0b2d12d1757738846a85a9b7f934437e185a17e922b60eace4eaaec6e8781bef
6
+ metadata.gz: 5611e7a73ebdab34a6b71079d7d59159d4f48317f96a811a91a7f3eef5720941b71f8c8c328a95aaea361c457d47f680dfa80afa79655a439afb8dd616b2d5a4
7
+ data.tar.gz: fa6cf46957c186d0808d7932280ce8fba1707fdb71ad68443ddb979f9d89d42cc05c2c54ce6acc4e4c187f74eb5ddd1d26c43e5ca832bbcaaa7087157878eb2e
@@ -20,6 +20,7 @@ class ElasticLoadBalancing < Mapper
20
20
  struct = OpenStruct.new(elb.to_h)
21
21
  struct.type = 'load_balancer'
22
22
  struct.arn = elb.dns_name
23
+ struct.load_balancer_version = 'v1'
23
24
 
24
25
  # describe_load_balancer_policies
25
26
  struct.policies = @client
@@ -20,6 +20,8 @@ class ElasticLoadBalancingV2 < Mapper
20
20
  struct = OpenStruct.new(elb.to_h)
21
21
  struct.type = 'load_balancer'
22
22
  struct.arn = elb.load_balancer_arn
23
+ struct.load_balancer_version = 'v2'
24
+ struct.load_balancer_type = elb.type
23
25
  struct.listeners = []
24
26
  struct.target_groups = []
25
27
 
@@ -18,6 +18,7 @@ class EMR < Mapper
18
18
 
19
19
  struct = OpenStruct.new(response.block_public_access_configuration.to_h)
20
20
  struct.type = 'configuration'
21
+ struct.arn = "arn:aws:emr:#{@region}:#{@account}/block_public_access_configuration"
21
22
 
22
23
  resources.push(struct.to_h)
23
24
  end
@@ -22,7 +22,7 @@ class GuardDuty < Mapper
22
22
  # get_detector
23
23
  struct = OpenStruct.new(@client.get_detector({ detector_id: detector }).to_h)
24
24
  struct.type = 'detector'
25
- struct.arn = "arn:aws:guardduty:#{@region}:detector/#{detector}"
25
+ struct.arn = "arn:aws:guardduty:#{@region}:#{@account}:detector/#{detector}"
26
26
 
27
27
  # get_findings_statistics (only active findings)
28
28
  struct.findings_statistics = @client.get_findings_statistics({
@@ -67,6 +67,24 @@ class RDS < Mapper
67
67
  end
68
68
  end
69
69
 
70
+ #
71
+ # describe_db_cluster_snapshots
72
+ #
73
+ @client.describe_db_cluster_snapshots.each_with_index do |response, page|
74
+ log(response.context.operation_name, page)
75
+
76
+ response.db_cluster_snapshots.each do |snapshot|
77
+ log(response.context.operation_name, snapshot.db_cluster_snapshot_identifier)
78
+
79
+ struct = OpenStruct.new(snapshot.to_h)
80
+ struct.type = 'db_cluster_snapshot'
81
+ struct.arn = snapshot.db_cluster_snapshot_arn
82
+ struct.parent_id = snapshot.db_cluster_identifier
83
+
84
+ resources.push(struct.to_h)
85
+ end
86
+ end
87
+
70
88
  #
71
89
  # describe_db_engine_versions
72
90
  #
@@ -19,7 +19,7 @@ class Route53 < Mapper
19
19
  response.hosted_zones.each do |zone|
20
20
  struct = OpenStruct.new(zone.to_h)
21
21
  struct.type = 'zone'
22
- struct.arn = zone.id
22
+ struct.arn = "aws:route53:#{@region}:#{@account}:zone/#{zone.name}"
23
23
  struct.logging_config = @client
24
24
  .list_query_logging_configs({ hosted_zone_id: zone.id })
25
25
  .query_logging_configs.first.to_h
@@ -19,7 +19,7 @@ class SES < Mapper
19
19
  response.identities.each do |identity|
20
20
  struct = OpenStruct.new
21
21
  struct.type = 'identity'
22
- struct.arn = "aws:ses:#{@region}::identity/#{identity}"
22
+ struct.arn = "arn:aws:ses:#{@region}:#{@account}:identity/#{identity}"
23
23
 
24
24
  # get_identity_dkim_attributes
25
25
  struct.dkim_attributes = @client.get_identity_dkim_attributes({ identities: [identity] }).dkim_attributes[identity].to_h
@@ -35,7 +35,7 @@ class SSM < Mapper
35
35
  struct = OpenStruct.new(parameter.to_h)
36
36
  struct.string_type = parameter.type
37
37
  struct.type = 'parameter'
38
- struct.arn = "arn:aws:#{@service}:#{@region}::parameter:#{parameter.name}"
38
+ struct.arn = "arn:aws:#{@service}:#{@region}:#{@account}:parameter:#{parameter.name}"
39
39
 
40
40
  resources.push(struct.to_h)
41
41
  end
@@ -34,14 +34,14 @@ class WAFV2 < Mapper
34
34
  }
35
35
 
36
36
  # get_web_acl
37
- @client.get_web_acl(params).each do |response|
38
- struct.arn = response.web_acl.arn
39
- struct.details = response.web_acl
37
+ @client.get_web_acl(params).each do |r|
38
+ struct.arn = r.web_acl.arn
39
+ struct.details = r.web_acl
40
40
  end
41
41
 
42
42
  # list_resources_for_web_acl
43
- @client.list_resources_for_web_acl({ web_acl_arn: 'ResourceArn' }).each do |response|
44
- struct.resources = response.resource_arns.map(&:to_h)
43
+ @client.list_resources_for_web_acl({ web_acl_arn: 'ResourceArn' }).each do |r|
44
+ struct.resources = r.resource_arns.map(&:to_h)
45
45
  end
46
46
 
47
47
  resources.push(struct.to_h)
@@ -16,6 +16,7 @@ class XRay < Mapper
16
16
  struct = OpenStruct.new
17
17
  struct.config = @client.get_encryption_config.encryption_config.to_h
18
18
  struct.type = 'config'
19
+ struct.arn = "arn:aws:xray:#{@region}:#{@account}/config"
19
20
 
20
21
  resources.push(struct.to_h)
21
22
 
@@ -1,3 +1,3 @@
1
1
  module AwsRecon
2
- VERSION = "0.2.31"
2
+ VERSION = "0.2.36"
3
3
  end
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.31
4
+ version: 0.2.36
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-01-28 00:00:00.000000000 Z
12
+ date: 2021-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk