Enabling Terracotta AI prompts in the UI

Terracotta AI supports the following automated prompts within your Terraform or CDK-TF repository. When enabled in the UI for the specific repo, when a new PR is opened for that repo or subdirectory, these will automatically run, even within a mono repo. These commands are also available within the PR of the enabled repo as a comment (the terracotta AI bot will see the command in the comment and respond https://docs.tryterracotta.com/update/docs/terracotta-built-in-commands).

In the repo's UI, you'll see the following commands available. When enabled on this screen, they will run automatically when a PR is opened in your repo.

Current list of support commands and their function

  1. Summary
    1. Provides an in-depth summary of the incoming PR changes
  2. Terraform Plan (cdk synth if CDK-TF)
    1. When configured with your AWS credentials (Role support coming soon, and other Cloud providers coming soon), Terracotta AI will automatically generate and review your plan to simulate a deployment against your live running infrastructure and current state file.
  3. Review
    1. Runs a static, AI-powered analysis of Terraform and CDKTF TypeScript code in a pull request. It flags security risks, misconfigurations, hardcoded secrets, and tagging or naming issues before code is merged.
  4. Guard (AI Guardrails)
    1. Guard enforces security and compliance at scale by embedding AI-powered guardrails directly into your Terraform workflows. Terracotta automatically flags any policy you deem required in every pull request. For example, ensuring every S3 bucket is encrypted, that only specific IAM role policies are used, and more. This ensures consistent policy enforcement across repos, teams, and cloud providers before code reaches CI/CD.
  5. Conflict
    1. Detects resource conflicts across active pull requests when multiple developers are modifying Terraform in parallel. It surfaces overlapping changes early to prevent double-applies, state contention, and broken deployments.
  6. Drift
    1. Detects infrastructure drift directly in your Terraform pull requests by comparing code, state, and live cloud resources before merge. It flags out-of-band changes that could cause outages, security gaps, or surprise costs so teams can resolve issues early, not after they are already building in the pipeline.
  7. Cost
    1. Calculates and explains the projected cloud cost of every Terraform change directly in the pull request. It flags high-impact changes, overprovisioned resources, and budget threshold violations before code reaches CI/CD so teams can prevent overruns, stay accountable, and keep finance aligned.