Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.16.0] An argument named "tags" is not expected here. #67

Open
borian opened this issue Aug 8, 2024 · 0 comments
Open

[0.16.0] An argument named "tags" is not expected here. #67

borian opened this issue Aug 8, 2024 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@borian
Copy link

borian commented Aug 8, 2024

Describe the Bug

WIth the update to v0.16.0 we get the following error when running terraform validate.

╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/dynamodb_table.dynamodb_autoscaler/main.tf line 9, in resource "aws_appautoscaling_target" "read_target":
│    9:   tags = module.this.tags
│ 
│ An argument named "tags" is not expected here.
╵

The message is repeated for read_target_index, write_target and write_target_index

Our call to the dynamodb_autoscaler:

module "dynamodb_autoscaler" {
  source = "cloudposse/dynamodb-autoscaler/aws"
  for_each = var.dynamodb_tables
  name                         = "dynamodb_autoscaler_${each.key}"
  dynamodb_table_name          = each.key
  dynamodb_indexes             = local.created_dynamodb_tables[each.key].global_secondary_index
  dynamodb_table_arn           = local.created_dynamodb_tables[each.key].arn
  autoscale_write_target       = 70
  autoscale_read_target        = 70
  autoscale_min_read_capacity  = each.value.min_read_capacity
  autoscale_max_read_capacity  = each.value.max_read_capacity
  autoscale_min_write_capacity = each.value.min_write_capacity
  autoscale_max_write_capacity = each.value.max_write_capacity
  tags = merge(
    var.default_tags,
    {
      Name = each.key
    }
  )
}

Expected Behavior

The module should pass on tags to created resources.

Steps to Reproduce

terraform validate with the module call above.

Screenshots

No response

Environment

Dependency Version
terraform 1.5.7
terraform-aws-dynamodb-autoscaler 0.16.0
hashicorp/aws 4.44.0
hashicorp/null 3.2.1

Additional Context

No response

@borian borian added the bug 🐛 An issue with the system label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant