Skip to content

Commit

Permalink
fix: ensure resource tags are applied to all the resources (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 authored Dec 3, 2024
1 parent c412496 commit 678d809
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/destination/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ module "collector" {
source_account_ids = local.payer_account_ids
# Indicates if we should create CUR data in the cost analysis account
create_cur = false
# Adding the tags to the resources
tags = var.tags

providers = {
aws.useast1 = aws.us_east_1
Expand All @@ -239,6 +241,7 @@ module "dashboards" {
source = "github.com/aws-samples/aws-cudos-framework-deployment//terraform-modules/cid-dashboards?ref=4.0.2"

stack_name = var.stack_name_cloud_intelligence
stack_tags = var.tags
template_bucket = module.dashboard_bucket.s3_bucket_id

stack_parameters = {
Expand All @@ -263,6 +266,7 @@ module "dashboards" {
resource "aws_cloudformation_stack" "cudos_data_collection" {
name = var.stack_name_collectors
capabilities = ["CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"]
tags = var.tags
template_url = format("%s/cudos/%s", local.bucket_url, "deploy-data-collection.yaml")

parameters = {
Expand Down
3 changes: 3 additions & 0 deletions modules/source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ module "source" {

# The destination bucket to repliaction the CUR data to
destination_bucket_arn = var.destination_bucket_arn
# Adding the resource tags to all resources created by this module
tags = var.tags

providers = {
aws.useast1 = aws.us_east_1
Expand Down Expand Up @@ -125,6 +127,7 @@ resource "aws_cloudformation_stack" "core_data_export_management" {
resource "aws_cloudformation_stack" "cudos_read_permissions" {
name = var.stack_name_read_permissions
capabilities = ["CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"]
tags = var.tags
template_url = format("%s/cudos/%s", local.stacks_base_url, "deploy-data-read-permissions.yaml")

parameters = {
Expand Down

0 comments on commit 678d809

Please sign in to comment.