-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
bug🐛 An issue with the system🐛 An issue with the system
Description
Describe the Bug
Due to having outdated AWS provider. its not possible to use for_each OR depends_on
│ Error: error loading config with snapshot: modules.tf:111,14-33: Module is incompatible with count, for_each, and depends_on; The module at module.vpc-peering is a legacy module which contains its own local provider configurations, and so calls to it may not use the count, for_each, or depends_on arguments.
│
│ If you also control the module "registry.terraform.io/cloudposse/vpc-peering-multi-account/aws", consider updating this module to instead expect provider configurations to be passed by its caller.
reference
| version = ">= 2.0" |
Expected Behavior
To be able to pass dynamic values to module to run multiple times. Instead of statically duplicating the module few times
Steps to Reproduce
Just use depends_on OR for_each OR count in module
module "vpc-peering" {
source = "cloudposse/vpc-peering-multi-account/aws"
version = "1.0.0"
for_each = var.peering_devices
}
Screenshots
No response
Environment
- Module version ~> 1.0.0
- Terraform version
Terraform v1.10.5 on darwin_arm64 + provider registry.terraform.io/hashicorp/aws v5.90.1
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug🐛 An issue with the system🐛 An issue with the system