-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EBS default encryption check and AccessAnalyzer check (#28)
* build status * check default EBS encryption setting in each region * only build on new gem version * AccessAnalyzer: list_analyzers - fixes #27 * Bump aws_recon to 0.2.12 * use GitHub badge * Bump aws_recon to 0.2.13 * typo * Bump aws_recon to 0.2.14
- Loading branch information
1 parent
740d063
commit a555bb8
Showing
6 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ name: docker-build | |
on: | ||
push: | ||
branches: build | ||
paths: | ||
- 'lib/aws_recon/version.rb' | ||
|
||
jobs: | ||
docker-build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class AccessAnalyzer < Mapper | ||
# | ||
# Returns an array of resources. | ||
# | ||
def collect | ||
resources = [] | ||
|
||
# | ||
# list_analyzers | ||
# | ||
@client.list_analyzers.each_with_index do |response, page| | ||
log(response.context.operation_name, page) | ||
|
||
# analyzers | ||
response.analyzers.each do |analyzer| | ||
struct = OpenStruct.new(analyzer.to_h) | ||
struct.type = 'analyzer' | ||
resources.push(struct.to_h) | ||
end | ||
end | ||
|
||
resources | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module AwsRecon | ||
VERSION = "0.2.11" | ||
VERSION = "0.2.14" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters