Closed si-walker-cpi closed 1 year ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
we already provide an example on how to do this https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/blob/f612ec14f996a378909dd2cd461118c1d272cf70/examples/complete/main.tf#L153-L212
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
terraform provider: 1.3.4
It's currently pretty much impossible, as far as I'm aware, to create multiple instances from the same locals/variables config block, you have to write multiple config blocks to get multiple instances.
If there was an
instance_count
variable that could be passed into the module, this would solve the problems encountered at the root module level.At the moment the count function is used as a method of deciding whether or not to deploy a resource, which seems like a waste of the function.
I'd like this code to work