Managing Multiple Environments with Terraform

  Рет қаралды 5,832

Ned in the Cloud

Ned in the Cloud

Күн бұрын

Пікірлер: 22
@baptistegaillard3559
@baptistegaillard3559 11 ай бұрын
Thanks for this video Ned. I'm wondering if the new Terraform Stacks feature presented during the HashiConf 2023 would help to work on several environments too. Hard to say because it's in private preview I believe but they were talking about new "deployment" blocks which could perhaps be mapped to the notion of environments. Perhaps you tried this new Stacks feature already ? In any case it would be a good subject for an other video. Thanks for you work ❤
@stevenlam6163
@stevenlam6163 9 ай бұрын
These are the most in-depth explanations I've found online. The differences and pros & cons of each approach is broken down really well. Thank you!
@NedintheCloud
@NedintheCloud 9 ай бұрын
Great to hear! Thanks for the feedback!
@Jblaaa-codes
@Jblaaa-codes 11 ай бұрын
One of the best video's I've seen on repository strategies.
@manojR5
@manojR5 5 ай бұрын
I agree, nailed it
@VinceT565
@VinceT565 11 ай бұрын
At my last place of employment we decided on using variable definition files for each env. This way we did not have to duplicate our TF files. There was some extra work involved to handle specific cases where you made have had to create multiple instances of the same resource, or in rare cases, you deployed a resource in one env, but not the other. But overall it make things much easier to create consistency because we didn't have different versions of a TF files in a branch or folder.
@juancitox77
@juancitox77 11 ай бұрын
The only downsize about this approach is that there's no clear view of what has been deployed to each env. That's not the case of folder-based strategy.
@NedintheCloud
@NedintheCloud 11 ай бұрын
There's a hybrid option that I didn't mention, where the each folder calls the root folder as a module and passes values and updates through there. But you still have the problem that updating the root folder configuration impacts all environments, so it's hard to do testing.
@asitha106
@asitha106 11 ай бұрын
​@@NedintheCloud the correct module abstraction is the key with hybrid approach. all environment should start with a module which builds the environment specifics things from scratch. the common objects shared between environments should have there own isolate repo, for eg if you are on hub and spoke model. the hub will live in isolation with separate tf repo. then environment modules will refer the resource directly when deploying. great video btw! :)
@edwardmike7523
@edwardmike7523 19 күн бұрын
You show your face more than the contents, is everything fine with you, very wierd
@chasing_the_horizon
@chasing_the_horizon 11 ай бұрын
I'm glad you didn't mention workspaces, 'cause I would report your channel for using them 🤣
@NedintheCloud
@NedintheCloud 11 ай бұрын
I may have done a whole video about workspaces 😉 kzbin.info/www/bejne/bILKeX-kmLVojKM
@daverichardson4686
@daverichardson4686 8 ай бұрын
I love this, QQ what if we need to use different credentials for UAT and Production, than we use for Dev and QA?
@NedintheCloud
@NedintheCloud 8 ай бұрын
If you're using GitHub environments, you can specify a different set of credentials for each environment in the GitHub Actions Environment Secrets.
@Gonkers44
@Gonkers44 11 ай бұрын
So.... What about workspaces?
@NedintheCloud
@NedintheCloud 11 ай бұрын
Terraform Core workspaces? I'd avoid them. kzbin.info/www/bejne/bILKeX-kmLVojKM
@RashadAkachi
@RashadAkachi 11 ай бұрын
Nice shirt
@marsamuk
@marsamuk 11 ай бұрын
Hi Ned. Are there any upcoming updates planned for the Terraform Azure course? Thanks
@NedintheCloud
@NedintheCloud 11 ай бұрын
Yes! In fact, I am working on the course outline as in a separate tab on my browser.
@marsamuk
@marsamuk 11 ай бұрын
Thank you for the update! I appreciate your efforts. Could you please provide an ETA for the course release?
@countbrapcula-espana
@countbrapcula-espana 9 ай бұрын
Ned. I think an excellent video to do is relive the GitHub Actions CI/CD workflow with Terraform and Azure AD Federated Identity (OIDC) to map over a 100% GitOps form of that using Weaveworks FluxCD Terraform Controller (tf-controller). How does the imperative workflow of end-to-end GHA change to a declarative one using a setup of having a Control Plane K8s cluster (even using KinD) that has the tf-controller CRDs on there to watch and reconcile changes to Terraform code in Git.
@NedintheCloud
@NedintheCloud 9 ай бұрын
Great suggestion! I took a look at the tf-controller a couple years ago. Sounds like it might be worth check out again.
Terraform Workspaces Are Bad Actually, And Here's Why.
20:33
Ned in the Cloud
Рет қаралды 6 М.
Exploring the Import Block in Terraform 1.5
23:44
Ned in the Cloud
Рет қаралды 14 М.
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 14 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 32 МЛН
Using Dynamic Blocks in Terraform
21:38
Ned in the Cloud
Рет қаралды 11 М.
Enhanced GitOps Workflows With Terraform Cloud
29:17
HashiCorp
Рет қаралды 4,6 М.
Discover Your Cloud Infrastructure with Firefly
16:13
Ned in the Cloud
Рет қаралды 1,7 М.
Terraform with Multiple State Files
26:14
Michael Crilly
Рет қаралды 20 М.
Choosing Between Count and For-Each
17:53
Ned in the Cloud
Рет қаралды 12 М.
How to Manage Secrets in Terraform?
15:54
Anton Putra
Рет қаралды 27 М.
Structuring Repositories for Terraform Workspaces
19:22
HashiCorp
Рет қаралды 26 М.
Terraform workspace and multiple environments
47:12
e2e Solution Architect
Рет қаралды 14 М.
Terraform Basics: Meta-arguments
10:11
Ned in the Cloud
Рет қаралды 653
Скучнее iPhone еще не было!
10:48
itpedia
Рет қаралды 609 М.
Китайцы сделали телефон БАЯН
0:14
Собиратель новостей
Рет қаралды 1,6 МЛН
How to connect electrical wires with good contact #short
0:29
Tuan CT
Рет қаралды 20 МЛН