Overview
Chef InSpec tests infrastructure state by querying running systems or cloud APIs. It verifies OS configuration, installed packages, network settings, and cloud resource properties.Capabilities
- Tests against live infrastructure (servers, containers, cloud resources)
- Rich resource library for AWS, Azure, GCP, and OS-level checks
- Compliance profiles map to regulatory frameworks
- Human-readable test output
Limitations
- Requires a running system or cloud API access
- Not applicable to source code analysis — check out Semgrep or CodeQL for source code checks
- Tests state at a point in time, not code patterns
Generated Format
- Language: Ruby
- Structure: InSpec control files with
control,describe, anditblocks - Execution:
inspec exec profile/