Using the Terracotta AI Bot in Pull Requests

πŸ€– Using the Terracotta AI Bot in Your PR

The Terracotta AI bot is always available in your pull request to provide real-time, contextual support for infrastructure-related questions.

πŸ” What It Can Do

The bot can answer questions related to:

  • Terraform syntax, modules, resources, and usage

  • CDK for Terraform (CDK-TF) in TypeScript

  • Cloud provider services like AWS, GCP, Azure

  • Contextual understanding of your PR, including:

    • The full diff
    • The surrounding IaC code
    • The overall repository structure

This means you can ask about:

  • Why a particular line in the PR might cause a misconfiguration
  • What a specific module does
  • How does a change impact the infrastructure as a whole
  • Security or cost implications of changes

πŸ’¬ How to Ask Questions

You can engage with the bot directly inside a PR comment:

  • Mention the bot directly:
@try-terracotta What does this IAM role allow?
  • Use thetc: shorthand:
tc: What resources will be created from this diff?

The bot will respond contextually within the same thread, utilizing knowledge of your repository and IaC tooling.

πŸ’‘

Tip: The bot understands context across the repo, so feel free to ask even high-level architecture or drift-related questions.