Skip to main content
Kate_M
Community Manager
Community Manager
Aug 19, 2024 9:48 AM UTC

'Unknown command' Error when running 'lacework iac policy create'

  • Apr 24, 2026 3:40 PM UTC
  • 0 replies
  • 83 views
  • Translate All
Description 'Unknown command' Error 
Scope When running 'lacework iac policy create'
Solution

When attempting to create a custom IaC policy with the lacework iac policy create command, the CLI returns the following error:


ERROR: unknown command "iac" for lacework.

 

This can be because either:

  1. The CLI’s iac component has not yet been installed, and/or:
  2. A problem exists with the Lacework CLI’s JSON key file

 

Configure the CLI for IaC by running lacework component install iac

If the above returns ERROR component iac not found, an issue may exist with the JSON credentials file

 

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024