Skip to content

Commit e61cbb5

Browse files
authored
feat: Add tags to aws_appautoscaling_target (#65)
Tags introduced for all `aws_appautoscaling_target` resources created after 2023-03-20
1 parent d1d0e3d commit e61cbb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ resource "aws_appautoscaling_target" "read_target" {
55
resource_id = "table/${var.dynamodb_table_name}"
66
scalable_dimension = "dynamodb:table:ReadCapacityUnits"
77
service_namespace = "dynamodb"
8+
9+
tags = module.this.tags
810
}
911

1012
resource "aws_appautoscaling_target" "read_target_index" {
@@ -14,6 +16,8 @@ resource "aws_appautoscaling_target" "read_target_index" {
1416
resource_id = "table/${var.dynamodb_table_name}/index/${each.key}"
1517
scalable_dimension = "dynamodb:index:ReadCapacityUnits"
1618
service_namespace = "dynamodb"
19+
20+
tags = module.this.tags
1721
}
1822

1923
resource "aws_appautoscaling_policy" "read_policy" {

0 commit comments

Comments
 (0)