From e61cbb5b9ba4e30d782c19848da0e8e015f1e013 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Tue, 6 Aug 2024 17:38:15 +0300 Subject: [PATCH] feat: Add tags to aws_appautoscaling_target (#65) Tags introduced for all `aws_appautoscaling_target` resources created after 2023-03-20 --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index 008a583..320edcd 100644 --- a/main.tf +++ b/main.tf @@ -5,6 +5,8 @@ resource "aws_appautoscaling_target" "read_target" { resource_id = "table/${var.dynamodb_table_name}" scalable_dimension = "dynamodb:table:ReadCapacityUnits" service_namespace = "dynamodb" + + tags = module.this.tags } resource "aws_appautoscaling_target" "read_target_index" { @@ -14,6 +16,8 @@ resource "aws_appautoscaling_target" "read_target_index" { resource_id = "table/${var.dynamodb_table_name}/index/${each.key}" scalable_dimension = "dynamodb:index:ReadCapacityUnits" service_namespace = "dynamodb" + + tags = module.this.tags } resource "aws_appautoscaling_policy" "read_policy" {