Managing Terraform State Files

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 8

  • @cakerer
    @cakerer 13 днів тому

    Thanks. This is a great primer for Terraform state and lock files.

  • @NadavZeldin-i7s
    @NadavZeldin-i7s 9 місяців тому

    Well done, great explanation

  • @studio48nl
    @studio48nl Рік тому

    Why can't the lock file also be created in the S3 bucket? Not fast enough?

  • @ashwindhaka5433
    @ashwindhaka5433 6 місяців тому

    Can I used same terraform state file to create resources in different regions. Pl answer Thanks in advance. 🙏

    • @premierde
      @premierde Місяць тому

      try to import the state file.

  • @davidkane3255
    @davidkane3255 8 місяців тому +1

    why can't a tool like terraform check what resources are available in the Cloud by connecting with the Cloud instance in question? Why keep a record of reality when you could in principle examine the real thing?

    • @WiseGuyFTW
      @WiseGuyFTW 2 місяці тому

      I was confused about this too but I think I understand it now;
      The first time you provision your infrastructure, you will end up creating a bunch of resources with IDs. Terrform can only obtain that information and create a mapping to the terraform code once, so that it can use it to update and further change the SAME infrastructure again. Without this mapping terraform will craete new resources everytime you run terraform apply, without the state file, it will not have any way to UPDATE the existing infrastructure.

  • @DimaEvoc
    @DimaEvoc 3 місяці тому

    thanx