lord-kyron / terraform-provider-phpipam

Terrform provider for PHPIPAM
https://registry.terraform.io/providers/lord-kyron/phpipam/latest
Apache License 2.0
54 stars 30 forks source link

use phpipam provider for multiple resources with count = #3

Closed gricuk closed 4 years ago

gricuk commented 4 years ago

What about the possibility for adding multiple resources e.g

resource "phpipam_address" "ip" {
    count = 3
}
lord-kyron commented 4 years ago

Hi, yes this is not implemented yet. I've just forked the original developer work and made it work on the latest terraform.

I will take a look at this and check if I can add this feature to the next release! Thank you!

jordips commented 4 years ago

@gricuk @lord-kyron Just to inform,

PHPIPAM doesn't have an API method to reserve IPs right now. I tried some workaround in this issue:

https://github.com/paybyphone/terraform-provider-phpipam/issues/7#issuecomment-590394393

But is not a solution. Maybe you find a better workaround.

lord-kyron commented 4 years ago

We've released a new version - official 1.0 which major change is that it supports "count" now. However, be sure to read the version changelog before updating!