How do I avoid repeating myself with Terraform?
Solution 1:
Terraform modules are what you want in case of duplication. These encapsulated certain resources with Default values you commonly use, you a set of resources can be reused with minimal Input instead of writing them again.
The Terraform module registry covers a few premade modules for the larger Providers, where you can try out some existing ones or - if your Provider is not supported - develop a better Picture for how a module should be used and designed.