You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Invalid count argument for read_target_index & write_target_index with running plan or apply.
on .terraform/modules/dynamodb_table_randomname.dynamodb_autoscaler/main.tf line 92, in resource "aws_appautoscaling_target""read_target_index":
92: count = var.enabled ? length(var.dynamodb_indexes) : 0
It should be able to run a plan and apply with local state without specifying a -out at the plan phase and apply with the output.
OR
by doing staged plan & apply with -target
Steps to Reproduce
Steps to reproduce the behavior:
terraform plan (will work)
terraform apply (will fail because of the count)
Works for me once
terraform plan -out plan
terraform apply "plan"
terraform plan (does not work anymore)
Or it also works with -target but this is not the way we would want to work.
Environment (please complete the following information):
Found a bug? Maybe our Slack Community can help.
Describe the Bug
Error: Invalid count argument for read_target_index & write_target_index with running plan or apply.
Code is:
Expected Behavior
It should be able to run a plan and apply with local state without specifying a
-out
at the plan phase and apply with the output.OR
by doing
staged plan & apply with -target
Steps to Reproduce
Steps to reproduce the behavior:
terraform plan
(will work)terraform apply
(will fail because of the count)Works for me once
terraform plan -out plan
terraform apply "plan"
terraform plan
(does not work anymore)Or it also works with -target but this is not the way we would want to work.
Environment (please complete the following information):
Terraform v0.13.5
Additional Context
The text was updated successfully, but these errors were encountered: