Add comprehensive tags support to infrastructure resources#100
Add comprehensive tags support to infrastructure resources#100
Conversation
- Add tags variable to search module - Add tags variable to quilt module - Pass tags from quilt module to search module - Apply tags to aws_elasticsearch_domain resource This allows users to tag their Elasticsearch clusters with stack IDs or other metadata for better resource tracking and cost allocation. Co-Authored-By: Claude <noreply@anthropic.com>
- Add tags variable and support to db module (RDS instance and security groups) - Add tags variable and support to vpc module (VPC, subnets, security groups, endpoints) - Add tags to S3 bucket in quilt module - Pass tags from quilt module to db, vpc, and search modules This extends the tagging capability beyond just ElasticSearch to include: - RDS database instances and associated security groups - VPC resources (VPC, subnets, NAT gateways) - Security groups (DB accessor, DB, user ingress) - VPC endpoints (S3 Gateway, API Gateway) - S3 bucket for CloudFormation templates This enables better resource tracking, cost allocation, and management across all infrastructure components in different stack deployments. Co-Authored-By: Claude <noreply@anthropic.com>
that's not true the main question is why |
I don't know, but whatever we are doing currently does NOT seem to tag the OpenSearch service: |
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive tagging support to infrastructure modules (VPC, DB, Search, and Quilt) to enable better resource tracking, cost allocation, and organizational compliance.
Changes:
- Added
tagsvariable to all infrastructure modules with default empty map - Applied tags to AWS resources including ElasticSearch domains, RDS instances, security groups, VPCs, subnets, NAT gateways, VPC endpoints, and S3 buckets
- Configured tag propagation from the Quilt parent module to all child modules
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| modules/vpc/variables.tf | Added tags variable for VPC resources |
| modules/vpc/main.tf | Applied tags to VPC module, security group, and VPC endpoints |
| modules/search/variables.tf | Added tags variable for ElasticSearch domain |
| modules/search/main.tf | Applied tags to ElasticSearch domain resource |
| modules/quilt/variables.tf | Added tags variable at parent module level |
| modules/quilt/main.tf | Propagated tags to all child modules (VPC, DB, Search) and S3 bucket |
| modules/db/variables.tf | Added tags variable for RDS and security groups |
| modules/db/main.tf | Applied tags to RDS instance and security group modules |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude <noreply@anthropic.com>
currently we do nothing 😄 |

This PR adds comprehensive tags support to all major infrastructure resources in the IAC modules.
Changes
Modules Updated
Search Module (ElasticSearch)
aws_elasticsearch_domainresourceDB Module (RDS)
VPC Module
Quilt Module
Resources Tagged
With these changes, the following AWS resources can be tagged:
Benefits
Example Usage
All tags are optional and default to an empty map if not provided.