Hi Kevin, Is there an easy way to import a significant number of previously defined address objects? I couldn't imagine importing 100+ objects one by one: terraform import fortios_firewall_address.addr1 addr1 terraform import fortios_firewall_address.differentaddr different_name_convention etc.
The imports are usually 1 to 1 imports for resources but there may be a way to possibly use a for_each in the code and pass in a list of some sort but its something i might actually try and test out. I'll let you know if I get something to work.
@@kenchiloba2921 Funny, this is exactly what got me looking for help videos on terraform too - I don't want to import any ONE object, I want ALL objects (and anything related) to build a baseline to make changes from there. Its seems a chicken and egg problem where we as network/security folks have infrastructure with existing configurations we need to import as a whole, all things, and then modify (or make a template for something else) from there, but automation tools never seem understand this concept of dealing with something preexisting, or at least not well.
I actually love you
Great vid, thanks! The provider documentation isn't explaining this well enough.
Yea no problem. Glad it was able to help. Let me know if you have any other questions
Hi Kevin, Is there an easy way to import a significant number of previously defined address objects? I couldn't imagine importing 100+ objects one by one:
terraform import fortios_firewall_address.addr1 addr1
terraform import fortios_firewall_address.differentaddr different_name_convention
etc.
The imports are usually 1 to 1 imports for resources but there may be a way to possibly use a for_each in the code and pass in a list of some sort but its something i might actually try and test out. I'll let you know if I get something to work.
@@letmetechyou hi , did you find a way to import the resources in bulk ?
@@kenchiloba2921I have the same question, it would be really helpful if possible
@@kenchiloba2921 Funny, this is exactly what got me looking for help videos on terraform too - I don't want to import any ONE object, I want ALL objects (and anything related) to build a baseline to make changes from there.
Its seems a chicken and egg problem where we as network/security folks have infrastructure with existing configurations we need to import as a whole, all things, and then modify (or make a template for something else) from there, but automation tools never seem understand this concept of dealing with something preexisting, or at least not well.