I’m not sure if I have the right channel – I’ve spent all of my cognitive resources today trying to construct terraform for building s3 buckets … When I ran across this topic: https://github.com/hashicorp/terraform/issues/21458, I decided to openly say something.
I have a project where an application that I’m building TF for uses about 10 s3 buckets. Some have lifecycle_rules, some are public facing, some have default encryption enabled. This translates to about 2-3 resource blocks per use-case, or I suppose I could define a resource per s3 bucket, which I also don’t want to do, given that they’re all so similar. Either of these approaches seem far less readable and maintainable than it would be if I were able to pass objects in as blocks.
So maybe I’m doing something wrong.
… And while I’m here, is there a good resource for TF 12? I find myself repeatedly trying to make the TF 12 preview article fit every new use-case. (it seems to always be the same article that I’m trying to squeeze some new experience out of.)