Seamlessly Upgrade Azure Terraform to 4.0.0 Without Downtime: Handling Deprecated Resources

  Рет қаралды 690

Azure Terraformer

Azure Terraformer

Күн бұрын

Пікірлер: 9
@byron_glover
@byron_glover 3 ай бұрын
Thanks for this video. I literally have to do this at work next week and was wondering what the approach might be. A bit tedious that the only option is reimport though. Would it b worth running a plan to see how bad the situation is on the latest version before incrementally upgrading from like 2.x to 3.x ? My project has like 150ish resources, mostly function apps.
@azure-terraformer
@azure-terraformer 3 ай бұрын
Glad it was helpful! Definitely do some testing in an isolated workspace! The terraform plan unfortunately only outputs the first deprecated resource it doesn’t output them all.
@byron_glover
@byron_glover 3 ай бұрын
@@azure-terraformer Oh that's good to know! In that case, should I just do a "terraform state list" and check each resource in the docs for deprecation? I think there is only like 10 or so which are created many times.
@raul3722
@raul3722 3 ай бұрын
@@byron_glover I used this command to list all the deprecations in the current plan (I was in v3.116.0): terraform plan -json | jq '.diagnostic | select( . != null )' | jq '{detail: .detail, filename: .range.filename, start_line: .range.start.line}'
@sironjuh
@sironjuh 3 ай бұрын
Just upgraded from 3.x to 4.x and luckily there were no deprecated resources, just the configuration blocks had some changes in naming and values that the new provider expects. So after upgrading the provider, I just renamed/moved those values to the new blocks to match the new setup and Terraform was happy.
@azure-terraformer
@azure-terraformer 3 ай бұрын
@sironjuh good job! Way to be a good steward of your infrastructure and keeping your providers updated! 🙌
@Jandi69488
@Jandi69488 3 ай бұрын
Brother can you do a video on how we can bring over a hand built kubernetes cluster into the kuberntes provider. I have lost all the yaml files. And need to replicate what’s currently active.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
DRY vs WET in Terraform: When ‘Elegance’ Makes Your Code a Mess!
48:16
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 65 М.
Reacting to Azure Terraform Community Call - September 2024: Terrastodon
1:30:15
Your Complete Guide to Passing CKAD the Right Way
18:43
DevOps Avenue
Рет қаралды 63
Best of CES 2025
14:50
The Verge
Рет қаралды 288 М.