I have recently used Checkov to analyze a quite large code base - an 8-year old monorepo with 28000 lines of HCL code. Many separate Terraform workflows in directories, each with its own state file. All managed by Atlantis.

It took around 1 hour to process the whole repository, minus external modules. I have run a variation of the following command:

$ checkov --quiet \
--download-external-modules=true \
--skip-path ".external_modules" \
-o cli -o json \
--output-file-path console,results.json \
--directory terraform/

Initially, I have got many error messages related to the fact that Checkov didn’t support pulling modules whose definitions used a partial…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help