Terraform Test
Official hashicorp skill covering Terraform, testing for deploying and managing cloud infrastructure.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add terraform-test npx -- -y @trustedskills/terraform-test
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"terraform-test": {
"command": "npx",
"args": [
"-y",
"@trustedskills/terraform-test"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The terraform-test skill enables AI agents to validate and test infrastructure code written in Terraform. It supports running tests against Terraform configurations to ensure they meet expected standards, detect errors, and verify compliance with best practices.
When to use it
- Before deploying new infrastructure changes to catch issues early.
- To enforce coding standards and best practices across a team.
- During continuous integration (CI) pipelines to automate testing of Terraform code.
- When verifying that infrastructure as code aligns with security or compliance policies.
Key capabilities
- Runs validation checks on Terraform configurations.
- Detects syntax errors, misconfigurations, and policy violations.
- Integrates with CI/CD workflows for automated testing.
- Provides detailed feedback to help improve code quality.
Example prompts
- "Run tests on my Terraform configuration in the
infrastructuredirectory." - "Check if this Terraform plan complies with our security policies."
- "Validate that all resources are properly tagged according to company standards."
Tips & gotchas
- Ensure your Terraform code is formatted correctly before running tests.
- Some advanced checks may require additional plugins or configurations to be enabled.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🏢 Official
Published by the company or team that built the technology.