aws_recon 0.5.22 → 0.5.25
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/aws_recon.rb +4 -0
- data/lib/aws_recon/collectors/emr.rb +16 -0
- data/lib/aws_recon/services.yaml +0 -5
- 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: 26c0212e326609dc91f25d039e7d527447c9f4a7883918a4175a7f906d580993
|
4
|
+
data.tar.gz: dcbb90f2240d483a9f96b6d786f44d4e82daae007b3ba81ef3de8f7c98d1ef13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae1f07d98a57c38d110b30bfda20f3d6ecc85a06d48f5d996b76a8720acb1dd795fb6cc0dadbf5320ee6623fd2a2ec0cea16cd67139d4008d1b58c4787f382f3
|
7
|
+
data.tar.gz: 2b844d1118bb8a4880e86ec466e068589fea42c8ea27a4496d32f05db83c1455e5f367e29764ac175353f34df5603a23e46295f64e2ec84259e9ab2b9e889ccc
|
data/lib/aws_recon/aws_recon.rb
CHANGED
@@ -63,6 +63,10 @@ module AwsRecon
|
|
63
63
|
|
64
64
|
# add resources to resources array for output to file
|
65
65
|
@resources.concat(collection) if @options.output_file
|
66
|
+
rescue Aws::Errors::ServiceError => e
|
67
|
+
raise if @options.quit_on_exception
|
68
|
+
|
69
|
+
puts "Ignoring exception: '#{e.message}'\n"
|
66
70
|
end
|
67
71
|
|
68
72
|
#
|
@@ -46,6 +46,22 @@ class EMR < Mapper
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
+
#
|
50
|
+
# list_security_configurations
|
51
|
+
#
|
52
|
+
@client.list_security_configurations.each_with_index do |response, page|
|
53
|
+
log(response.context.operation_name, page)
|
54
|
+
|
55
|
+
response.security_configurations.each do |security_configuration|
|
56
|
+
log(response.context.operation_name, security_configuration.name)
|
57
|
+
|
58
|
+
struct = OpenStruct.new(@client.describe_security_configuration({ name: security_configuration.name }).security_configuration.parse_policy)
|
59
|
+
struct.type = 'security_configuration'
|
60
|
+
struct.arn = "arn:aws:emr:#{@region}:#{@account}:security-configuration/#{security_configuration.name}" # no true ARN
|
61
|
+
resources.push(struct.to_h)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
49
65
|
resources
|
50
66
|
end
|
51
67
|
|
data/lib/aws_recon/services.yaml
CHANGED
@@ -93,9 +93,6 @@
|
|
93
93
|
alias: cloudwatchlogs
|
94
94
|
- name: Kafka
|
95
95
|
alias: kafka
|
96
|
-
excluded_regions:
|
97
|
-
- af-south-1
|
98
|
-
- ap-northeast-3
|
99
96
|
- name: SecretsManager
|
100
97
|
alias: secretsmanager
|
101
98
|
- name: SecurityHub
|
@@ -141,8 +138,6 @@
|
|
141
138
|
alias: servicequotas
|
142
139
|
- name: Transfer
|
143
140
|
alias: transfer
|
144
|
-
excluded_regions:
|
145
|
-
- ap-northeast-3
|
146
141
|
- name: DirectConnect
|
147
142
|
alias: directconnect
|
148
143
|
- name: DirectoryService
|
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.5.
|
4
|
+
version: 0.5.25
|
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:
|
12
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|