Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
malikkamranabid opened this issue Jan 17, 2025 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@malikkamranabid
Copy link

malikkamranabid commented Jan 17, 2025

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

@malikkamranabid malikkamranabid added the bug 🐛 An issue with the system label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant