GoogleCloudPlatform / terraform-google-netapp-volumes

Deploy NetApp Storage Volumes
https://registry.terraform.io/modules/GoogleCloudPlatform/netapp-volumes/google
Apache License 2.0
2 stars 3 forks source link

Make Volume creation optional #24

Closed koushikgongireddy closed 4 months ago

koushikgongireddy commented 5 months ago

Hi,

Good to have below 2 scenarios

  1. Currently we can only create 1 volume and 1 pool with this module, is there a way we can create multiple volumes and pools using same module in single project?

  2. Currently only Pool creation is conditional and not Volume. Please add volume creation also conditional.

Thanks Koushik

imrannayer commented 5 months ago

@koushikgongireddy 1) You can create 1 pool and multiple volumes. parameter storage_volumes is list of object where each object represent 1 volume. See example. It is creating two volumes. You can call this module in loop to create multiple pools and volumes.

2) I am assuming you want to use this module to create a pool without any volume. If that's request we can work on it. Let me know if thats what you are looking for.

koushikgongireddy commented 5 months ago

@imrannayer Thanks for the details

  1. We will leverage this option and use it accordingly.
  2. Yeah, that's correct. We need conditional option for both volumes and pools so we can only create them as per needed basis. We don't want both to be created if we want only 1(either volume or pool)
imrannayer commented 4 months ago

@koushikgongireddy volume creation is optional in version 1.0+. Can you plz try and leme know if it works for you?

koushikgongireddy commented 4 months ago

@imrannayer Can you share an example on how we can test it. I don't see the conditional set for volumes!

imrannayer commented 4 months ago

Pool only Volume Only

koushikgongireddy commented 4 months ago

Thanks @imrannayer Let me check and get back!!