aws_recon 0.2.30 → 0.2.35
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/configservice.rb +1 -1
- data/lib/aws_recon/collectors/ec2.rb +2 -2
- data/lib/aws_recon/collectors/elasticloadbalancing.rb +1 -0
- data/lib/aws_recon/collectors/elasticloadbalancingv2.rb +2 -0
- data/lib/aws_recon/collectors/guardduty.rb +1 -1
- data/lib/aws_recon/collectors/iam.rb +1 -1
- data/lib/aws_recon/collectors/rds.rb +18 -0
- data/lib/aws_recon/collectors/route53.rb +1 -1
- data/lib/aws_recon/collectors/ses.rb +1 -1
- data/lib/aws_recon/collectors/ssm.rb +1 -1
- 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: e0e56eb0ec39b06ea92cbf5ea236dc2049ffe349b8081b1e31ea83280f987298
|
4
|
+
data.tar.gz: 1639da4ecc67a230b36ce9c4bb3eb38012b57a02c0fc33850916063ec9bb8fd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a941be401c91901d2309dc11bebd494dae518ea3f8ac23896919e78223fce30acd211b2b05ae406994502a44d53e3870d1dc93b107189813c70a794e2199c490
|
7
|
+
data.tar.gz: 9b7d77b54ea0818084451c7d339b0c5d1244e0c45ad0a5665458470a5e5225ef05301aed61f0d93085429f2f2251382d15f98c4d66310b093d197fb858558b80
|
@@ -43,7 +43,7 @@ class ConfigService < Mapper
|
|
43
43
|
response.configuration_recorders.each do |recorder|
|
44
44
|
struct = OpenStruct.new(recorder.to_h)
|
45
45
|
struct.type = 'configuration_recorder'
|
46
|
-
struct.arn = "arn:aws:config:#{@region}:configuration_recorder/#{recorder.name}"
|
46
|
+
struct.arn = "arn:aws:config:#{@region}:#{@account}:configuration_recorder/#{recorder.name}"
|
47
47
|
|
48
48
|
# describe_configuration_recorder_status (only accepts one recorder)
|
49
49
|
@client.describe_configuration_recorder_status({ configuration_recorder_names: [recorder.name] }).each do |response|
|
@@ -55,8 +55,8 @@ class EC2 < Mapper
|
|
55
55
|
log(response.context.operation_name, page)
|
56
56
|
|
57
57
|
# reservations
|
58
|
-
response.reservations.each_with_index do |reservation,
|
59
|
-
log(response.context.operation_name, 'reservations',
|
58
|
+
response.reservations.each_with_index do |reservation, rpage|
|
59
|
+
log(response.context.operation_name, 'reservations', rpage)
|
60
60
|
|
61
61
|
# instances
|
62
62
|
reservation.instances.each do |instance|
|
@@ -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
|
|
@@ -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.
|
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}
|
22
|
+
struct.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}
|
38
|
+
struct.arn = "arn:aws:#{@service}:#{@region}:#{@account}:parameter:#{parameter.name}"
|
39
39
|
|
40
40
|
resources.push(struct.to_h)
|
41
41
|
end
|
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.2.
|
4
|
+
version: 0.2.35
|
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-
|
12
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|