So on our last post we used for_each with terraform 0.12.6+ to create multiple resources with a single reference based on a list.
Since terraform version 0.12 you are able to use terraform for_each under dynamic blocks, but with the latest version, you are now also able to reference for_each under resource as well.
This post is intended to be different than my usual posts, and it’s meant to show that a person should also have fun with programming.
Sometimes there is a need to always run some terraform local-exec, so we can always execute a null_resource when doing an apply or applying it as a target.
How to create an S3 folder with Terraform that is OS independent, and can be ran across Windows, or Unix based systems.