-
Notifications
You must be signed in to change notification settings - Fork 0
chore: align to serverless for naming and tags #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 |
infrastructure/frontend/vars.tf
Outdated
variable "repo_name" { | ||
description = "Name of the repository for resource descriptions and tags" | ||
type = string | ||
} |
There was a problem hiding this comment.
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.
variable "repo_name" { | |
description = "Name of the repository for resource descriptions and tags" | |
type = string | |
} |
Copilot uses AI. Check for mistakes.
No description provided.