How Terraform and GitLab CI/CD automate versioned, reproducible infrastructure with tracked changes and a unified state to support AI security platforms.