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
│
│ on .terraform\modules\foo.vpc_flow_logs.s3_log_storage_bucket.aws_s3_bucket\main.tf line 64, in resource "aws_s3_bucket_logging" "default":
│ 64: count = local.enabled && var.logging != null ? 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: Incorrect attribute value type
│
│ on .terraform\modules\foo.vpc_flow_logs.s3_log_storage_bucket\sqs_notifications.tf line 36, in data "aws_iam_policy_document" "sqs_policy":
│ 36: values = module.aws_s3_bucket.bucket_arn
│ ├────────────────
│ │ module.aws_s3_bucket.bucket_arn is a string
│
│ Inappropriate value for attribute "values": list of string required.
local.enabled seems to reference module.this.enabled which seems to not be around at plan time.
ElvenSpellmaker
changed the title
Two errors when trying to plan
Two errors when trying to plan 'Invalid count argument' and 'Incorrect attribute value type'
Nov 5, 2023
Describe the Bug
local.enabled
seems to referencemodule.this.enabled
which seems to not be around at plan time.Expected Behavior
Plan should work
Steps to Reproduce
Screenshots
No response
Environment
Additional Context
This happens for both 1.0 and 1.0.1 and I can't continue using 0.18.x because of the provider changes which break the older version.
The text was updated successfully, but these errors were encountered: