How to scan your IaC using Terrascan?
You can use the following commands to scan your IaC using Terrascan.
If Python module is Installed
If you’re not using the Python module, you need to use the command in your terminal:
terrascan scan -f <filename>
If Python module is not Installed
If you’re using the Terrascan module from Python, the command line changes a bit.
terrascan -f <filename>
Updating Terrascan Software
Since it is an open-source software, there will be updates to the software from time to time. You can update it using the command:
terrascan init
What is Terrascan? Features, Installation and Use Cases
Terrascan is a popular software used to detect any possible vulnerabilities in IaC (Infrastructure as Code) structures. With its predefined built-in policies, Terrascan can detect any vulnerabilities in your code and let you know about the policy violations in detail, including their severity. The violations can range from minor infractions to severe structural compromises detected in the code. Before we go into detail, let’s see more about Terrascan.