Skip to content

Simpler terraform#8

Open
KarsonAlford wants to merge 9 commits intoto-terraformfrom
simpler-terraform
Open

Simpler terraform#8
KarsonAlford wants to merge 9 commits intoto-terraformfrom
simpler-terraform

Conversation

@KarsonAlford
Copy link
Contributor

No description provided.

@KarsonAlford KarsonAlford requested a review from Copilot November 21, 2025 01:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR simplifies the Terraform infrastructure by removing custom module abstractions and consolidating everything into flat, self-contained configuration files. The changes make the infrastructure more accessible to developers unfamiliar with Terraform by eliminating indirection and providing comprehensive inline documentation.

Key Changes:

  • Removed all custom Terraform modules (az-naming, az-resource-group, az-container-app, az-container-app-env)
  • Inlined Container App resource directly into main.tf with explicit configuration
  • Enhanced documentation with detailed comments and expanded README
  • Removed legacy Azure DevOps pipeline file

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Infrastructure/Terraform/variables.tf Reorganized with improved descriptions and better grouping by purpose
Infrastructure/Terraform/main.tf Replaced module calls with inline Container App resource definition
Infrastructure/Terraform/providers.tf Added explanatory comments for backend and provider configuration
Infrastructure/Terraform/outputs.tf New file exposing Container App URLs and metadata
Infrastructure/Terraform/README.md Completely rewritten with beginner-friendly documentation and examples
Infrastructure/Terraform/tf-modules/* Removed all custom module directories
Infrastructure/Terraform/pipelines/helloworld-tf-pipeline.yml Removed legacy pipeline file
Infrastructure/Terraform/AGENTS.md Removed AI agent guidelines document
CLAUDE.md Updated to reflect Terraform changes and removed Bicep references

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

### 1. Reference Existing Infrastructure
```hcl
data "azurerm_resource_group" "rg" {
name = var.resource_group_name
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example references var.resource_group_name, but the actual variable name is var.existing_cae_resource_group_name according to variables.tf. This inconsistency could confuse readers following the documentation.

Suggested change
name = var.resource_group_name
name = var.existing_cae_resource_group_name

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants