f5devcentral / terraform-aws-bigip-module

This Repo has been Archived, and moved to: https://github.com/F5Networks/terraform-aws-bigip-module for Supported Module
3 stars 8 forks source link

remove instance count from the module #30

Closed yossi-r closed 3 years ago

yossi-r commented 3 years ago

starting version 0.13 terraform supports the 'count' meta argument for modules https://www.terraform.io/docs/language/meta-arguments/count.html

using the argument when calling a module is a lot simpler and makes more sense in terms of the way terraform builds resources. please remove the count from the module and include examples of how to use count when calling the module

RavinderReddyF5 commented 3 years ago

@yossi-r , i think if you are looking for how to use count with module, we provided same here: https://github.com/f5devcentral/terraform-aws-bigip-module/blob/master/examples/bigip_aws_1nic_deploy/main.tf#L187

for now we providing this using instance_count variable [ default 1], if you dont provide count argument also it defaults to 1.

RavinderReddyF5 commented 3 years ago

closing this issue , as it already have example for module count