aws_recon 0.3.2 → 0.3.3

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: 4cbcf69491befc3f3fb506855f5f11597ac6f7325e697f9e77161e80eeceea08
4
- data.tar.gz: 00d9aaa7ca5c58f1ad05c892d50f90b8468d37b4b7b20396a19c09a84d408b30
3
+ metadata.gz: 78fc6d22af7befa021cb4dba0e0a625ba9066a96c6d5ea749d8585f1e32f9bb1
4
+ data.tar.gz: e2225ffdcdb745e37dfb3c79be07bea53e6ff1652c030132b87f4581cc879d7e
5
5
  SHA512:
6
- metadata.gz: 8e60879ad2fd773f359d5b75fdac5f846cb9c1708d223396f28c448f4a47b79e683b43135e2700171e5cbc68eefef43f75d9ff3e1a1885076fbd24e97b605c54
7
- data.tar.gz: c58078ba779cb25cfa5600549c31381e533ae8bcbc1479581d49c5c3462e9354e0df3714d796ca0d678c8fdc2059a041c08d953c99d4ed04e6f3ee1744d2fc89
6
+ metadata.gz: dbd8bd93d81b95f989965a0578fefe96f6111dd02f78d5c88db1e989c3b1362aca8af0bb61a14f931eadf8429ccff2f5c63550efc48e5687d6124cda133208e5
7
+ data.tar.gz: c6d70f5d870b3322237563d65b325c461398499cd26aebafbb12c095fd8ff00291aa6ef59af35fde3c68fd269a60bc90ad4aa47269af2f3c47577842f83d26ca
@@ -6,7 +6,7 @@ module AwsRecon
6
6
  class CLI
7
7
  def initialize
8
8
  # parse options
9
- @options = Parser.parse ARGV.length < 1 ? %w[-h] : ARGV
9
+ @options = Parser.parse ARGV.empty? ? %w[-h] : ARGV
10
10
 
11
11
  # timing
12
12
  @starting = Process.clock_gettime(Process::CLOCK_MONOTONIC)
@@ -15,11 +15,11 @@ module AwsRecon
15
15
  @account_id = Aws::STS::Client.new.get_caller_identity.account
16
16
 
17
17
  # AWS services
18
- @aws_services = YAML.load(File.read(SERVICES_CONFIG_FILE), symbolize_names: true)
18
+ @aws_services = YAML.safe_load(File.read(SERVICES_CONFIG_FILE), symbolize_names: true)
19
19
 
20
20
  # User config services
21
21
  if @options.config_file
22
- user_config = YAML.load(File.read(@options.config_file), symbolize_names: true)
22
+ user_config = YAML.safe_load(File.read(@options.config_file), symbolize_names: true)
23
23
 
24
24
  @services = user_config[:services]
25
25
  @regions = user_config[:regions]
@@ -94,7 +94,7 @@ module AwsRecon
94
94
  next unless @regions.include?(region) && !skip_region
95
95
 
96
96
  # user included this service in the args
97
- next unless @services.include?(service.name) || @services.include?(service.alias) # rubocop:disable Layout/LineLength
97
+ next unless @services.include?(service.name) || @services.include?(service.alias)
98
98
 
99
99
  collect(service, region)
100
100
  end
@@ -14,11 +14,13 @@
14
14
  alias: codebuild
15
15
  excluded_regions:
16
16
  - af-south-1
17
+ - ap-northeast-3
17
18
  - name: CodePipeline
18
19
  alias: codepipeline
19
20
  excluded_regions:
20
21
  - af-south-1
21
22
  - me-south-1
23
+ - ap-northeast-3
22
24
  - name: AutoScaling
23
25
  alias: autoscaling
24
26
  - name: CloudTrail
@@ -51,6 +53,7 @@
51
53
  - af-south-1
52
54
  - eu-south-1
53
55
  - me-south-1
56
+ - ap-northeast-3
54
57
  - name: IAM
55
58
  global: true
56
59
  alias: iam
@@ -102,6 +105,7 @@
102
105
  - ap-east-1
103
106
  - af-south-1
104
107
  - eu-south-1
108
+ - ap-northeast-3
105
109
  - name: CloudWatch
106
110
  alias: cloudwatch
107
111
  - name: CloudWatchLogs
@@ -110,10 +114,13 @@
110
114
  alias: kafka
111
115
  excluded_regions:
112
116
  - af-south-1
117
+ - ap-northeast-3
113
118
  - name: SecretsManager
114
119
  alias: sm
115
120
  - name: SecurityHub
116
121
  alias: sh
122
+ excluded_regions:
123
+ - ap-northeast-3
117
124
  - name: Support
118
125
  global: true
119
126
  alias: support
@@ -123,10 +130,16 @@
123
130
  - ap-southeast-1
124
131
  - name: GuardDuty
125
132
  alias: guardduty
133
+ excluded_regions:
134
+ - ap-northeast-3
126
135
  - name: Athena
127
136
  alias: athena
137
+ excluded_regions:
138
+ - ap-northeast-3
128
139
  - name: EFS
129
140
  alias: efs
141
+ excluded_regions:
142
+ - ap-northeast-3
130
143
  - name: Firehose
131
144
  alias: firehose
132
145
  - name: Lightsail
@@ -139,6 +152,7 @@
139
152
  - af-south-1
140
153
  - eu-south-1
141
154
  - me-south-1
155
+ - ap-northeast-3
142
156
  - name: WorkSpaces
143
157
  alias: workspaces
144
158
  excluded_regions:
@@ -151,8 +165,11 @@
151
165
  - af-south-1
152
166
  - eu-south-1
153
167
  - me-south-1
168
+ - ap-northeast-3
154
169
  - name: SageMaker
155
170
  alias: sagemaker
171
+ excluded_regions:
172
+ - ap-northeast-3
156
173
  - name: ServiceQuotas
157
174
  alias: servicequotas
158
175
  - name: Transfer
@@ -162,13 +179,18 @@
162
179
  - af-south-1
163
180
  - eu-south-1
164
181
  - me-south-1
182
+ - ap-northeast-3
165
183
  - name: DirectConnect
166
184
  alias: dc
167
185
  - name: DirectoryService
168
186
  alias: ds
187
+ excluded_regions:
188
+ - ap-northeast-3
169
189
  - name: DatabaseMigrationService
170
190
  alias: dms
171
191
  - name: XRay
172
192
  alias: xray
173
193
  - name: WAFV2
174
194
  alias: wafv2
195
+ excluded_regions:
196
+ - ap-northeast-3
@@ -1,3 +1,3 @@
1
1
  module AwsRecon
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.3
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-02-11 00:00:00.000000000 Z
12
+ date: 2021-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk