Skip to content

Deployment fails with Invalid Count Argument" with s3_bucket_versioning_enabled = true #271

Open
@malikkamranabid

Description

@malikkamranabid

Describe the Bug

Describe the Bug
The issue arises with s3_bucket_versioning_enabled = true

The "count" value depends on resource attributes that cannot be determined
until applied, so Terraform cannot predict how many instances will be
created. To work around this, use the target argument first to apply only
the resources on which the count depends.

Expected Behavior

It should not throw a count error

Steps to Reproduce

Create a terraform-aws-elastic-beanstalk-environment
Set enable_loadbalancer_logs = true in that module
Try terraform plan
Screenshots

Screenshots

Image

Environment

Environment

  • cloudposse/elastic-beanstalk-environment/aws Version: v0.52.0
  • Terraform Version: v1.10.4
  • Provider Versions:
    • aws: ~> 5.70

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions