InfraDots logo
Documentation

Infradots Platform Agents (IDP Agents)

Infradots Platform Agents are AI-powered assistants designed to enhance your infrastructure as code workflow by providing automated guidance, validation, and optimization of your Terraform/OpenTofu code.

What IDP Agents Do

IDP Agents serve as your infrastructure code quality partners that:

  • Review code changes based on Terraform/OpenTofu best practices
  • Interact with your codebase to identify potential issues and optimization opportunities
  • Run validation jobs automatically on your code changes
  • Enforce linting and formatting standards to maintain code quality
  • Provide actionable recommendations to improve resource configuration

Key Features

Best Practice Enforcement

IDP Agents continuously analyze your infrastructure code against industry best practices and security standards, ensuring your deployments follow established guidelines for:

  • Resource configuration
  • Security group settings
  • IAM permission scoping
  • State management
  • Module organization

Automated Code Reviews

When you create pull requests or submit changes to your infrastructure code, IDP Agents automatically:

  1. Scan the proposed changes
  2. Highlight potential issues
  3. Suggest improvements
  4. Verify compliance with organizational standards

IDP Agent code review

Performance Optimization

Agents analyze your resource configurations to identify:

  • Over-provisioned resources
  • Cost optimization opportunities
  • Performance bottlenecks
  • Redundant configurations

Linting and Formatting

Maintain consistent code quality across your team with automated:

  • Syntax validation
  • Style enforcement (according to HashiCorp's style conventions)
  • Documentation checks
  • Variable and output validation

Continuous Learning

IDP Agents continuously improve by:

  • Learning from your team's accepted recommendations
  • Staying updated with the latest Terraform/OpenTofu best practices
  • Adapting to your organization's specific infrastructure patterns

Getting Started with IDP Agents

To enable IDP Agents in your workspace:

  1. Navigate to your workspace settings
  2. Enable the "IDP Agents" option
  3. Configure the level of automation you prefer (from suggestions-only to automated fixes)
  4. Commit your changes and watch the agents help improve your infrastructure code

IDP Agents integrate seamlessly with your existing CI/CD pipeline, providing valuable insights without disrupting your workflow.

ℹ️ Info

[!info] IDP Agents are available on Growth and Enterprise plans. On the Starter tier, you still get basic linting and formatting checks.