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
When I destroy the eks component, I see this error
│ Error: Invalid count argument
│
│ on .terraform/modules/iam_roles.account_map/modules/remote-state/remote.tf line 6, in data "terraform_remote_state""remote":
│ 6:count=local.remote_state_enabled&& local.backend_type=="remote"?1:0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created. To work around this, use the -target
│ argument to first apply only the resources that the count depends on.
╵
╷
│ Error: Invalid count argument
│
│ on .terraform/modules/iam_roles.account_map/modules/remote-state/s3.tf line 6, in data "terraform_remote_state""s3":
│ 6:count=local.remote_state_enabled&& local.backend_type=="s3"?1:0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created. To work around this, use the -target
│ argument to first apply only the resources that the count depends on.
Found a bug? Maybe our Slack Community can help.
Describe the Bug
When I destroy the eks component, I see this error
Expected Behavior
Allow destruction
Steps to Reproduce
Steps to reproduce the behavior:
atmos terraform destroy eks --stack uw2-dev
Additional Context
terraform-yaml-stack-config/modules/remote-state/remote.tf
Lines 5 to 6 in 18239bd
terraform-yaml-stack-config/modules/remote-state/s3.tf
Lines 5 to 6 in 18239bd
terraform-yaml-stack-config/modules/remote-state/variables.tf
Lines 30 to 34 in 18239bd
terraform-yaml-stack-config/modules/remote-state/main.tf
Line 34 in 18239bd
terraform-yaml-stack-config/modules/remote-state/main.tf
Line 18 in 18239bd
workarounds
I tried setting
bypass = ! var.enabled
which resulted in the same above error.The workaround was to destroy the eks component using
enabled=false
which got around this error.The text was updated successfully, but these errors were encountered: