본문으로 건너뛰기

Terraform Cloud Integration

Overview

Terraform Cloud provides infrastructure as code workflow with audit logging. KYRA MDR collects Terraform audit logs for monitoring infrastructure changes and compliance. Supports Terraform Cloud and Enterprise.

Prerequisites

  • A KYRA MDR Collector installed and running
  • Terraform Cloud or Enterprise organization
  • Organization token with audit trail access
  • Terraform Cloud Business tier (for audit trails)

Configuration

Configure Terraform Cloud audit log collection:

  1. Generate an Organization API token:
    • Navigate to Organization > Settings > API Tokens
    • Create an Organization Token
  2. Configure the KYRA MDR collector:
collector-config.yaml
sources:
- type: terraform
api_url: https://app.terraform.io
organization: <org-name>
token: <organization-token>
poll_interval: 300s
  1. Restart the collector service

Collected Log Types

Log TypeDescriptionSecurity Use
WorkspaceWorkspace creation and configurationInfrastructure management
RunPlan and apply execution eventsChange management
StateState access and modificationState integrity monitoring
VariableVariable creation and updatesSecret management
TeamTeam membership and permission changesAccess control
OrganizationOrganization setting changesSecurity policy monitoring

Troubleshooting

No audit data: Terraform Cloud audit trails require the Business tier.

API rate limiting: Set poll interval to 300 seconds or more.

Sensitive variables: KYRA MDR receives audit events about variable changes but not actual values.

Contact kyra@seekerslab.com for support.