Managing Terraform State Files

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

КОМЕНТАРІ • 7

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

    Well done, great explanation

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

    thanx

  • @studio48nl
    @studio48nl 11 місяців тому

    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 17 днів тому

      try to import the state file.

  • @davidkane3255
    @davidkane3255 7 місяців тому +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.