Skip to content

Commit

Permalink
feat: Add tags to aws_appautoscaling_target (#65)
Browse files Browse the repository at this point in the history
Tags introduced for all `aws_appautoscaling_target` resources created after 2023-03-20
  • Loading branch information
MaxymVlasov authored Aug 6, 2024
1 parent d1d0e3d commit e61cbb5
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 @@ -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" {
Expand All @@ -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" {
Expand Down

0 comments on commit e61cbb5

Please sign in to comment.