(Part 2/N) Terraform: Import Existing Resource

(Part 2/N) Terraform: Import Existing Resource

In this episode of the Terraform series, we continued from where we left off in the previous podcast. We created a Docker container, cloned the example repository, and initialized Terraform. We generated configuration using Terraform plan and imported a resource while modifying the configuration. We pruned the generated configuration and applied changes, handling destructive changes. We also troubleshooted and fixed errors along the way. Overall, we made progress in understanding Terraform and managing Docker containers using Terraform. In this second podcast of the Terraform series, Krish continues exploring the Terraform documentation and learning as he goes. He demonstrates how to modify the Terraform configuration by replacing placeholder values and making necessary changes to the config files. Krish also shares the commands he used, including Docker run, Docker PS, Terraform plan, Terraform apply, and Terraform show. He concludes the podcast by summarizing the progress made and inviting viewers to check out the next episode.

Takeaways

  • Terraform allows you to manage infrastructure using a common workflow

  • Importing resources into Terraform requires defining an import block and generating configuration

  • Destructive changes should be carefully managed and tested

  • Troubleshooting errors in Terraform requires understanding the configuration and resource dependencies Modifying the Terraform configuration involves replacing placeholder values and making necessary changes to the config files.

  • Commands like Docker run, Docker PS, Terraform plan, Terraform apply, and Terraform show are useful in the Terraform workflow.

  • The Snowpal platform offers APIs and SaaS products that can be used to power back-end systems and accelerate development processes.

  • Snowpal provides flexible options for using their products, including pay-per-use, monthly plans, and commercial licenses.

Chapters

00:00 Introduction and Recap

02:01 Creating a Docker Container

05:19 Cloning the Example Repository

08:16 Initializing Terraform and Generating Configuration

10:04 Understanding Main.tf and Terraform.tf

11:46 Generating Configuration with Terraform Plan

15:50 Importing a Resource and Modifying Configuration

18:21 Pruning the Generated Configuration

20:50 Applying Changes and Handling Destructive Changes

27:31 Troubleshooting and Fixing Errors

36:44 Recap and Conclusion

50:29 Modifying the Terraform Configuration

52:28 Summary and Next Steps

53:26 Using Snowpal APIs and SaaS Products

Snowpal Products:

Jaksot(416)

Polyglot Technology Stack: Good or Bad for a small software startup?

Polyglot Technology Stack: Good or Bad for a small software startup?

If you think that's a leading question, think again! Let's discuss some of the pros and cons of a Polyglot Technology Stack. Manage projects on https://snowpal.com!

17 Kesä 20216min

Are you designing APIs for Web App or Mobile App, or both?

Are you designing APIs for Web App or Mobile App, or both?

While you always want to design your APIs for multiple clients, it isn't always possible. What if you built it for a Web Client and need the same APIs for Mobile? Or vice-versa.   Manage your projects on https://snowpal.com!

16 Kesä 20213min

Flutter Mobile App: SSL Performance Issue (including the fix)

Flutter Mobile App: SSL Performance Issue (including the fix)

We ran into a rather weird performance issue that took me several hours to get to the bottom of. I figured it would be worth sharing the specifics so it helps save you the hours I spent debugging and finding a fix. Manage projects on https://snowpal.com!

14 Kesä 202110min

Hiring a developer: Do not stinge when it comes to hiring. A good engineer is always worth their price!

Hiring a developer: Do not stinge when it comes to hiring. A good engineer is always worth their price!

Good things cost money. Not everything expensive may be good, sure. But, I truly believe a good engineer is surely worth their price. Manage your projects on https://snowpal.com!

9 Kesä 20215min

Do technical jargons make you uncomfortable? Do you get intimidated by them?

Do technical jargons make you uncomfortable? Do you get intimidated by them?

It's quite natural but try not to be bothered by fancy words you may or may not understand. How well you build software has little, if any, bearing on whether or not you understand these jargons. Manage your projects on https://snowpal.com!

2 Kesä 20215min

Mac Users: Is it taking a little too much time to copy videos from your Photos App to your local directory?

Mac Users: Is it taking a little too much time to copy videos from your Photos App to your local directory?

Join the club :) It takes a lot of time to make a copy of a video file (even small ones) and clearly, there's an Apple bug that they are yet to identify/fix. I've an easy solution. Manage your projects on https://snowpal.com!

26 Touko 20212min

A JavaScript Event Handling issue that took us a few hours to get to the bottom of

A JavaScript Event Handling issue that took us a few hours to get to the bottom of

We added support to allow inline edits on our cards (Kanban and others) recently and ran into an issue during implementation that turned out to be related to Event Handling.

22 Touko 20212min

If you are an engineer who doesn't particularly enjoy writing (or reading) documents, try this!

If you are an engineer who doesn't particularly enjoy writing (or reading) documents, try this!

I don't have drawing skills but am pictorial in my thinking. Given that, I've relied on a variety of tools over the years to keep myself productive. Manage your projects on https://snowpal.com!

18 Touko 20211min