Skip to content

Invalid for_each: log_arn_chunks uses unknown values at plan time (module fails with AWS Provider 6.x) #67

@ninos-atg

Description

@ninos-atg

I'm getting a plan-time failure in version v10.0.1 of the module caused by a for_each using unknown values:

Error: Invalid for_each argument
local.log_arn_chunks is a list of list of string, known only after apply

This happens here:

for_each = {
  for idx, chunk in local.log_arn_chunks : idx => chunk if length(chunk) > 0
}

Additionally, the module pins multiple incompatible AWS provider versions, causing:

Failed to query available provider packages: no available releases match the given constraints >=5.49.0 ... <7.0.0

Please update the module to support Terraform 1.6+ and AWS Provider 6.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions