Debugging the AzureRM Provider with VSCode

Опубликовано: 17 Октябрь 2024
на канале: Ned in the Cloud
440
18

As I learn Go, I've been looking to do more with maintaining Terraform providers, and what better provider to start with than the AzureRM provider I use for so many demos? The process is not especially hard, even for a relative newbie like myself. However, I found the documentation from HashiCorp a little difficult to parse.

In this video, I'll go over how to set up debugging in VSCode for the AzureRM provider. We'll cover creating the launch configuration, starting the debugger, and configuring Terraform to send requests to the delve listener.

Shoutout to Drew Mullen and his excellent post on debugging the aws provider with VSCode (https://dev.to/drewmullen/vscode-terr.... The azurerm provider is a little different, but the process is very similar.

Useful links:

Drew's post: https://dev.to/drewmullen/vscode-terr...
Official HashiCorp docs: https://developer.hashicorp.com/terra...
AzureRM contributing guide: https://github.com/hashicorp/terrafor...

Thank you so much for watching! Subscribe if you think I’ve earned it. Hit the bell as well if you’re feeling swell.❤️&🌮

✅🔔 Subscribe ► https://nedinthecloud.com/SubscribeYT
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🌮 Other videos to check out:

📽️ Terraform Basics - Modules:    • Terraform Basics: Modules  
📽️ Introducing TerraHash - Module Verification for Terraform:    • Introducing TerraHash - Module Verifi...  
📽️ Using the Terraform Test Framework: Using the Terraform Test Framework

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🌮 Timestamps:

⌚ 0:00 Intro
⌚ 1:46 Debugging Basics
⌚ 4:08 Debugging Terraform Providers
⌚ 6:08 HashiConf Promo
⌚ 7:20 Configuring VSCode
⌚ 10:27 Using the Debugger
⌚ 14:17 Final thoughts

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#terraform #hashicorp #devops #cloudengineer #gitops
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⭐ CONNECT WITH ME 🏃🦖

🌐 Day Two Cloud: https://daytwocloud.io
🌐 Chaos Lever: https://chaoslever.com
🌐 Visit my Website ► https://nedinthecloud.com
🗳 Pluralsight ► https://app.pluralsight.com/profile/a...
🐙 Find the code at GitHub► https://github.com/ned1313
🐧 Twitter ►   / ned1313  
👨‍💼 LinkedIn►   / ned-bellavance  

For collaboration or any queries: [email protected]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

🌮 About Me 🌮

Ned is a curious human with a knack for creating entertaining and informative content. With over 20 years in the industry, Ned brings real-world experience to all his creative endeavours, whether that's pontificating on a podcast, delivering live instruction, writing certification guides, or producing technical training videos. He has been a helpdesk operator, systems administrator, cloud architect, and product manager. In his newest incarnation, Ned is the Founder of Ned in the Cloud LLC. As a one-man-tech juggernaut, he develops courses for Pluralsight, runs two podcasts (Day Two Cloud and Chaos Lever, and creates original content for technology vendors.

Ned has been a Microsoft MVP since 2017 and a HashiCorp Ambassador since 2020, and he holds a bunch of industry certifications that have no bearing on anything beyond his exceptional ability to take exams and pass them. When not in front of the camera, keyboard, and microphone, you can find Ned running the scenic trails of Pennsylvania or rocking out to live music in his hometown of Philadelphia. Ned has three guiding principles: Embrace discomfort, Fail often, and Be kind.