-
Notifications
You must be signed in to change notification settings - Fork 0
Add cost tags #86
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
base: main
Are you sure you want to change the base?
Add cost tags #86
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.
PR Summary
This PR adds resource tagging functionality across AWS resources for better cost tracking and resource management in Quilt stacks.
- Added
common_tagsandstack_dependent_tagsin/modules/quilt/locals.tfto standardize tag structure - Critical issue: Empty
stack_dependent_tagsinitialization in both/modules/db/main.tfand/modules/search/main.tfprevents proper tag propagation - Added comprehensive tag testing framework in
/testsdirectory to verify tag behavior - Accidentally committed temporary Terraform files (
.terraform.tfstate.lock.info) that should be gitignored - Missing CHANGELOG entry for tracking these changes
11 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile
modules/search/main.tf
Outdated
| locals { | ||
| stack_dependent_tags = {} | ||
| } |
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.
logic: Empty tags map will not propagate parent module's stack-dependent tags. Should receive tags as a variable or inherit from parent module.
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
… add-cost-tags
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 adds cost tags functionality by standardizing tag structure and introducing new tests to verify tagging behavior on AWS resources. Key changes include:
- Adding common_tags and stack_dependent_tags in the Quilt module for Terraform.
- Introducing a comprehensive test framework under the /tests directory.
- Providing documentation in tests/README.md on how to execute the tests.
Reviewed Changes
Copilot reviewed 4 out of 13 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/test.yml | Provides a minimal CloudFormation template for testing. |
| tests/README.md | Documents the test prerequisites and steps. |
Files not reviewed (9)
- modules/db/main.tf: Language not supported
- modules/db/variables.tf: Language not supported
- modules/quilt/locals.tf: Language not supported
- modules/quilt/main.tf: Language not supported
- modules/quilt/outputs.tf: Language not supported
- modules/search/main.tf: Language not supported
- modules/search/variables.tf: Language not supported
- tests/.terraform.lock.hcl: Language not supported
- tests/test_tags.tf: Language not supported
Description
Companion to https://github.com/quiltdata/deployment/pull/2042
Match id and stack name for Terraform-created resources
TODO