(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(412)

How to deal with the issue of Bot Sign ups?

How to deal with the issue of Bot Sign ups?

Well, as technology improves, we get smarter as humans. But, so do bots. There's any number of things you can, and should, do to ensure your app is not hit with bot (aka: fake) sign ups.

26 Joulu 20202min

GitHub Projects - How we manage our repo-specific issues

GitHub Projects - How we manage our repo-specific issues

We use our own product (obviously!) to give us a federated view of all the projects that our ecosystem comprises of but at a code repository level, we use GitHub's Project feature to manage repo-specific issues. Here's how we do it.

1 Joulu 20202min

Snowpal Pitch: GitHub Branch Management

Snowpal Pitch: GitHub Branch Management

There is no single answer to what branching strategies work for you when it comes to GitHub. We've tried more than a few ourselves but eventually arrived at one that works quite well for us.

28 Marras 20203min

Unit Testing vs Functional Testing vs Integration Testing: What are some differences?

Unit Testing vs Functional Testing vs Integration Testing: What are some differences?

While it's important to not be bogged down by terminologies, it is also imperative that there is consensus within any given team so there is no confusion.

28 Marras 20205min

TypeScript & ECMAScript6

TypeScript & ECMAScript6

It is hard to overstate the value strong typing brings to the table, especially in the context of teams that move real fast (and have fun doing so)!

22 Marras 20202min

SSL Connect Error: Upgrade to heroku-20

SSL Connect Error: Upgrade to heroku-20

If you upgraded to heroku-20, and ran into SSL errors, this quick video (less than 2 minutes is very, very quick for someone for who brevity ain't always a forte!) may help you. It took me 3 hours to figure this out, and if I can save you that time, it would be worth it, right!

20 Marras 20201min

Code Refactoring: Few things to consider

Code Refactoring: Few things to consider

Refactoring your code periodically is a good idea. But, when you do, exercise some caution.

17 Marras 202045s

(Part 2/2) Software Testing in a Startup

(Part 2/2) Software Testing in a Startup

If you are an ambitious startup (like us!) that tries to churn out a lot of new features on a weekly basis, you are always focused on the next cool thing to do. But, needless to mention, a stable platform in Production is imperative to building user trust. Here are some of the things we do to ensure uncompromising stability.

17 Marras 20203min