Skip to content

Commit

Permalink
fix: Add tags to aws_appautoscaling_target resourses missed in prev…
Browse files Browse the repository at this point in the history
…ious PR

Follow-up to #65
  • Loading branch information
MaxymVlasov authored Aug 6, 2024
1 parent e61cbb5 commit 0bbfcd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ resource "aws_appautoscaling_target" "write_target" {
resource_id = "table/${var.dynamodb_table_name}"
scalable_dimension = "dynamodb:table:WriteCapacityUnits"
service_namespace = "dynamodb"

tags = module.this.tags
}

resource "aws_appautoscaling_target" "write_target_index" {
Expand All @@ -77,6 +79,8 @@ resource "aws_appautoscaling_target" "write_target_index" {
resource_id = "table/${var.dynamodb_table_name}/index/${each.key}"
scalable_dimension = "dynamodb:index:WriteCapacityUnits"
service_namespace = "dynamodb"

tags = module.this.tags
}

resource "aws_appautoscaling_policy" "write_policy" {
Expand Down

0 comments on commit 0bbfcd8

Please sign in to comment.