Skip to content

Conversation

mishraomp
Copy link
Collaborator

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 25, 2025 20:00
Copy link
Contributor

@Copilot 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 aligns naming conventions and tag management across the Terraform infrastructure by replacing hardcoded tags with centralized tag variables and ensuring consistency between resource configurations.

  • Replaces individual tags blocks with centralized tag variables (var.common_tags or local.common_tags)
  • Updates resource naming and comments to include repository information
  • Introduces or updates variables for repository name and common tags

Reviewed Changes

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

Show a summary per file
File Description
infrastructure/frontend/waf.tf Replaces explicit tags with var.common_tags
infrastructure/frontend/vars.tf Adds variables for common tags and repo_name (one variable is duplicated)
infrastructure/frontend/cloudfront.tf Updates S3 bucket names and tag assignments
infrastructure/database/vars.tf Adds repo_name and common_tags variables
infrastructure/database/aurora-v2.tf Replaces hardcoded tags with var.common_tags
infrastructure/api/waf.tf Updates tag usage to local.common_tags; updates comments
infrastructure/api/vars.tf Adds variable for repo_name
infrastructure/api/ecs.tf Adds tag assignments from local.common_tags
infrastructure/api/autoscaling.tf Adds tag assignments from local.common_tags
infrastructure/api/api-gateway.tf Adds tag assignments from local.common_tags
.github/workflows/prune-env.yml Adds a valid prod option for app_env
.github/workflows/.stack-prefix.yml Adjusts repository naming logic for the stack prefix
.github/workflows/.deployer.yml Adds repo_name to the workflow inputs

Comment on lines 32 to 35
variable "repo_name" {
description = "Name of the repository for resource descriptions and tags"
type = string
}
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

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

Duplicate definition of variable 'repo_name' detected. Please remove the redundant declaration to prevent conflicts.

Suggested change
variable "repo_name" {
description = "Name of the repository for resource descriptions and tags"
type = string
}

Copilot uses AI. Check for mistakes.

@mishraomp mishraomp merged commit 0bb3731 into main Jun 25, 2025
53 of 57 checks passed
@mishraomp mishraomp deleted the chore/align-serverless branch June 25, 2025 20:38
@mishraomp mishraomp self-assigned this Jun 25, 2025
@mishraomp mishraomp moved this from New to Done in NRIDS - Architecture Jun 26, 2025
@mishraomp mishraomp added the chore regular house keeping, and improvements label Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore regular house keeping, and improvements
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant