terraform-provider-nifi icon indicating copy to clipboard operation
terraform-provider-nifi copied to clipboard

Not supporting multiple process groups

Open kailasjc123 opened this issue 6 years ago • 3 comments

Hello team, I have created a component which will read the nifi template xml and dynamically generate the terraform script. It is working as expected when I create a one process group and deploy the components under that process group. I have multiple flows(and multiple template xmls) in nifi and when I created a separate flow from a separate template file and tried to deploy that using terraform, it identifies the similar elements in previously deployed flow and treats as a delta. In other words it deletes the elements in the first flow which are present in the first process group and deploys the new flow with the new components. Similar components in the second flow are treated as a delta. Is this provider able to support only one flow. Or are we expected to generate the terraform script using flow.xml(which will contain the complete flow details) and always do a delete insert of the complete system. Please confirm. Thanking you in anticipation

kailasjc123 avatar Jun 28 '18 11:06 kailasjc123

@kailasjc123 Is that component that converts NiFi template XML to Terraform something you can share? I was thinking about developing something along that lines for myself but if you've already got it done…

colindean avatar Jul 18 '18 23:07 colindean

Hello Colin, I am working in Software Service Company and working for a Fashion Retailer. Basically I don't own the code and share that. We will be making this public along with the update in nifi-provider in a week or so. Once we do I will intimate you.

PS:- We started with template xml, however now we are using the flow.xml to generate the complete nifi flow. I am not sure whether that will meet your purpose

KailasJanardhanan avatar Jul 20 '18 06:07 KailasJanardhanan

@colindean https://github.com/Nordstrom/nifi_terraform_generator

shashanksurya avatar Sep 06 '18 00:09 shashanksurya