aws_recon 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws_recon/collectors/emr.rb +20 -6
- data/lib/aws_recon/services.yaml +15 -32
- data/lib/aws_recon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24978de4c7cf85dc8ed7f4a177caca6f1746ed6de3a877d921c3169817fa036d
|
4
|
+
data.tar.gz: f60ebd2d5e072656dfac5e2514edffb95b4bc059f66ed9d540608abd6cad9322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07fb3311cae4325997aa6b66bf9dd150a8d5a4eccff8a444dceb5a22b6cbdddd597025082afc7c02e96e889e988e23f1939d1ef2bff5772c5b51975a4bc32fdf
|
7
|
+
data.tar.gz: d09fb6a88b9e0f8f6565a49c66c302e9725817295eeb2556f292423fda0c66a6fa5975a74444f6c6597ce6703cfe84b4aaf02c62a10e3854f20f73b70b740ee0
|
@@ -13,14 +13,20 @@ class EMR < Mapper
|
|
13
13
|
#
|
14
14
|
# get_block_public_access_configuration
|
15
15
|
#
|
16
|
-
|
17
|
-
|
16
|
+
begin
|
17
|
+
@client.get_block_public_access_configuration.each do |response|
|
18
|
+
log(response.context.operation_name)
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
struct = OpenStruct.new(response.block_public_access_configuration.to_h)
|
21
|
+
struct.type = 'configuration'
|
22
|
+
struct.arn = "arn:aws:emr:#{@region}:#{@account}/block_public_access_configuration"
|
22
23
|
|
23
|
-
|
24
|
+
resources.push(struct.to_h)
|
25
|
+
end
|
26
|
+
rescue Aws::EMR::Errors::ServiceError => e
|
27
|
+
log_error(e.code)
|
28
|
+
|
29
|
+
raise e unless suppressed_errors.include?(e.code) && !@options.quit_on_exception
|
24
30
|
end
|
25
31
|
|
26
32
|
#
|
@@ -42,4 +48,12 @@ class EMR < Mapper
|
|
42
48
|
|
43
49
|
resources
|
44
50
|
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def suppressed_errors
|
55
|
+
%w[
|
56
|
+
InvalidRequestException
|
57
|
+
]
|
58
|
+
end
|
45
59
|
end
|
data/lib/aws_recon/services.yaml
CHANGED
@@ -13,14 +13,13 @@
|
|
13
13
|
- name: CodeBuild
|
14
14
|
alias: codebuild
|
15
15
|
excluded_regions:
|
16
|
-
- af-south-1
|
17
16
|
- ap-northeast-3
|
18
17
|
- name: CodePipeline
|
19
18
|
alias: codepipeline
|
20
19
|
excluded_regions:
|
21
20
|
- af-south-1
|
22
|
-
- me-south-1
|
23
21
|
- ap-northeast-3
|
22
|
+
- me-south-1
|
24
23
|
- name: AutoScaling
|
25
24
|
alias: autoscaling
|
26
25
|
- name: CloudTrail
|
@@ -42,18 +41,10 @@
|
|
42
41
|
- ap-southeast-1
|
43
42
|
- name: ElasticLoadBalancingV2
|
44
43
|
alias: elbv2
|
45
|
-
excluded_regions:
|
46
|
-
- ap-southeast-1
|
47
44
|
- name: ElastiCache
|
48
45
|
alias: elasticache
|
49
46
|
- name: EMR
|
50
47
|
alias: emr
|
51
|
-
excluded_regions:
|
52
|
-
- ap-east-1
|
53
|
-
- af-south-1
|
54
|
-
- eu-south-1
|
55
|
-
- me-south-1
|
56
|
-
- ap-northeast-3
|
57
48
|
- name: IAM
|
58
49
|
global: true
|
59
50
|
alias: iam
|
@@ -99,13 +90,10 @@
|
|
99
90
|
- name: SES
|
100
91
|
alias: ses
|
101
92
|
excluded_regions:
|
102
|
-
- eu-north-1
|
103
|
-
- eu-west-3
|
104
|
-
- us-west-1
|
105
|
-
- ap-east-1
|
106
93
|
- af-south-1
|
107
|
-
-
|
94
|
+
- ap-east-1
|
108
95
|
- ap-northeast-3
|
96
|
+
- eu-south-1
|
109
97
|
- name: CloudWatch
|
110
98
|
alias: cloudwatch
|
111
99
|
- name: CloudWatchLogs
|
@@ -126,8 +114,6 @@
|
|
126
114
|
alias: support
|
127
115
|
- name: SSM
|
128
116
|
alias: ssm
|
129
|
-
excluded_regions:
|
130
|
-
- ap-southeast-1
|
131
117
|
- name: GuardDuty
|
132
118
|
alias: guardduty
|
133
119
|
excluded_regions:
|
@@ -145,27 +131,27 @@
|
|
145
131
|
- name: Lightsail
|
146
132
|
alias: lightsail
|
147
133
|
excluded_regions:
|
148
|
-
- eu-north-1
|
149
|
-
- us-west-1
|
150
|
-
- sa-east-1
|
151
|
-
- ap-east-1
|
152
134
|
- af-south-1
|
135
|
+
- ap-east-1
|
136
|
+
- ap-northeast-3
|
137
|
+
- eu-north-1
|
153
138
|
- eu-south-1
|
154
139
|
- me-south-1
|
155
|
-
-
|
140
|
+
- sa-east-1
|
141
|
+
- us-west-1
|
156
142
|
- name: WorkSpaces
|
157
143
|
alias: workspaces
|
158
144
|
excluded_regions:
|
159
|
-
-
|
145
|
+
- af-south-1
|
146
|
+
- ap-east-1
|
147
|
+
- ap-northeast-3
|
160
148
|
- ap-south-1
|
149
|
+
- eu-north-1
|
150
|
+
- eu-south-1
|
161
151
|
- eu-west-3
|
152
|
+
- me-south-1
|
162
153
|
- us-east-2
|
163
154
|
- us-west-1
|
164
|
-
- ap-east-1
|
165
|
-
- af-south-1
|
166
|
-
- eu-south-1
|
167
|
-
- me-south-1
|
168
|
-
- ap-northeast-3
|
169
155
|
- name: SageMaker
|
170
156
|
alias: sagemaker
|
171
157
|
excluded_regions:
|
@@ -175,11 +161,8 @@
|
|
175
161
|
- name: Transfer
|
176
162
|
alias: transfer
|
177
163
|
excluded_regions:
|
178
|
-
- ap-east-1
|
179
|
-
- af-south-1
|
180
|
-
- eu-south-1
|
181
|
-
- me-south-1
|
182
164
|
- ap-northeast-3
|
165
|
+
- eu-south-1
|
183
166
|
- name: DirectConnect
|
184
167
|
alias: dc
|
185
168
|
- name: DirectoryService
|
data/lib/aws_recon/version.rb
CHANGED