Advanced Terraform Techniques

Advanced Terraform Techniques

HashiCorp

1 год назад

12,613 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

CatOps Engineer [UA]
CatOps Engineer [UA] - 09.06.2023 17:11

Example with for loops in locals (not for_each) when speaker convert one structure to another are worth to see.
But all other stuff... Well, at least that combo of bad practices works fine for him.

Ответить
Stephane
Stephane - 21.04.2023 06:07

I was partly on this path with my refactoring.

However I keep asking myself if I’m digging a hole by doing simple wrappers around terraform resources. Eg. Module for a resource group

Seems like it goes against what Hashicorp recommends. Don’t create simple wrappers

Ok any case, I’ve got about 20 or so modules created following this pattern and not looking back.

I find the locals files are getting long in some cases with app gateways and apps etc.

Ответить
Grant Doyle
Grant Doyle - 17.04.2023 18:00

This is really great, is there a repo available? What version is this available on? I also wonder how this would work with existing infrastructure and having to pull those into a state file (reverse terraforming)?

Ответить
Amin Niktash
Amin Niktash - 24.03.2023 06:35

great advance modular approach and clean structure TF coding:) would you please provide more examples at the repo provisioning a vm and vent-peering along with security group assignment and windows vm extensions?

Ответить