Thanks Travis! I've searched and searched and could never find a good link or video that explained Dynamic Blocks as clearly as you just did in this video. Your explanation made it very easy to understand. Great work and thank you!
I think i am really starting to see what makes terraform so powerful. I discovered it and will never go back to manual resource creation. Its a gane changer.
Thankyou sir. but if i want to create security rules in another resource i.e using "azurerm_network_security_rule" how can we use dynamic blocks in this case please ?
hi Travis, I have seen several udemy videos and nobody is as good as you.. Why dont you do a complete advanced terraform course in udemy... Also why there is a need for dynamic block... I can still use the for each map under the resource "azurerm_network_security_group" example instead of using the dynamic opton right? I was able to do it without using dynamic
The for expressions mechanism is for constructing collection values from other collection values within expressions, which you can then assign to individual resource arguments that expect complex values. Some resource types also define nested block types, which typically represent separate objects that belong to the containing resource in some way. You can't dynamically generate nested blocks using for expressions, but you can generate nested blocks for a resource dynamically using dynamic blocks.
Thanks Travis! I've searched and searched and could never find a good link or video that explained Dynamic Blocks as clearly as you just did in this video. Your explanation made it very easy to understand. Great work and thank you!
I think i am really starting to see what makes terraform so powerful. I discovered it and will never go back to manual resource creation. Its a gane changer.
Great video, thanks
Thx man, your vids are really neat. Clear, straight to the point, yet precise. Nice work. /clap
Travis great videos
How can I created this dynamic for "source_application_security_group_ids" ??
Thankyou sir. but if i want to create security rules in another resource i.e using "azurerm_network_security_rule" how can we use dynamic blocks in this case please ?
hi Travis, I have seen several udemy videos and nobody is as good as you.. Why dont you do a complete advanced terraform course in udemy... Also why there is a need for dynamic block... I can still use the for each map under the resource "azurerm_network_security_group" example instead of using the dynamic opton right? I was able to do it without using dynamic
The for expressions mechanism is for constructing collection values from other collection values within expressions, which you can then assign to individual resource arguments that expect complex values.
Some resource types also define nested block types, which typically represent separate objects that belong to the containing resource in some way. You can't dynamically generate nested blocks using for expressions, but you can generate nested blocks for a resource dynamically using dynamic blocks.