Guidance required - Dynamically fetch the avaialble subnet ids from the aws account

Dynamically fetch the available subnet ids from the aws account and ask user to choose the subnets and based on that using terraform it will deploy a load balancer in the selected subnets