Managing Terraform State Files

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии •

  • @cakerer
    @cakerer Месяц назад

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

  • @ChinenyeOkonkwo-i9u
    @ChinenyeOkonkwo-i9u Месяц назад

    This is great!

  • @studio48nl
    @studio48nl Год назад

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

  • @NadavZeldin-i7s
    @NadavZeldin-i7s 10 месяцев назад

    Well done, great explanation

  • @ashwindhaka5433
    @ashwindhaka5433 8 месяцев назад

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

    • @premierde
      @premierde 2 месяца назад

      try to import the state file.

  • @davidkane3255
    @davidkane3255 9 месяцев назад +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 4 месяца назад

      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 5 месяцев назад

    thanx