Learn in 20 min terraform state file & terraform Import existing Infrastructure

Поділитися
Вставка
  • Опубліковано 25 лис 2024
  • terraform #terraform
    Terraform State file #statefile
    Terraform Importing existing Infrastructure #import
    Terraform State file & Terraform Importing existing Infrastructure
    What happens if we delete resource from Terraform state file ? ..
    How to bring back infrastructure resources into terraform state file which was created manually by using terraform import command
    terraform import aws_instance.ec2-2 i-0f16879c27a19a86e ( this is ec2 instance )
    terraform import aws_ebs_volume.ebs vol-06ac98a7a0f1ba211 ( This is EBS volume resource )
    www.terraform....
    www.terraform....
    Terraform keep state file remotely in S3
    • Terraform AWS - terraf...
    GitHub terraform code url
    github.com/sbr....

КОМЕНТАРІ • 22

  • @sairam-dy9my
    @sairam-dy9my 3 роки тому +1

    terraform import very nice , thanks for uploading

  • @VineethYadav-nq6eh
    @VineethYadav-nq6eh 5 місяців тому

    Super explanation ❤❤

  • @mayurkasar4467
    @mayurkasar4467 7 місяців тому

    Thank You sir !!

  • @kslvvaraprasad5864
    @kslvvaraprasad5864 3 роки тому

    very good explanation....

  • @mahantheshmr6903
    @mahantheshmr6903 2 роки тому

    It's very helpful...

  • @sandeepkota1619
    @sandeepkota1619 3 роки тому

    Very good, Thanks.

  • @KiranKumar-fo8kr
    @KiranKumar-fo8kr 3 роки тому +1

    Nice explanation

  • @justuploadit1106
    @justuploadit1106 2 роки тому

    Excellent

  • @venkatpathakamuri5170
    @venkatpathakamuri5170 2 роки тому

    i think if we run 'terraform output refresh' , it will create state file by importing details from AWS console right.

  • @ScrolltheNature
    @ScrolltheNature 3 роки тому +1

    Really nice explanation but is there is way to import the resources in bulk or all associated resources.

  • @shakilahamed7156
    @shakilahamed7156 3 роки тому +1

    Hi, Very Nice explanation.
    Can you tell me when we manually delete the vm from AWS or Azure portal which is provisioned through terraform instead of deleting it from the tfstate file then what will happen to the tfstate file.

    • @lavanya5
      @lavanya5 3 роки тому

      Terraform, having detected that the resource specified in the configuration no longer exists, will create a new instance of it with the values specified in the configuration

    • @theacevj2572
      @theacevj2572 3 роки тому

      In simple terms, the state file is the current state of the infra and the tf files have the desired state, when we do a terraform plan it fetches the current state and compares with desired state mentioned in tf files and then if changes detected it will make changes...

  • @srinipulavarthi8005
    @srinipulavarthi8005 3 роки тому

    How to import
    aws_vpc_endpoint.ec2
    Do we have to provide endpoint or instance id?

  • @prathibhap7770
    @prathibhap7770 3 роки тому +1

    After import existing environment to local how to export to another region

    • @davianjabari6697
      @davianjabari6697 3 роки тому

      i realize I'm kinda off topic but do anybody know of a good website to watch new series online ?

    • @luciangrayson2517
      @luciangrayson2517 3 роки тому

      @Davian Jabari Flixportal =)

    • @davianjabari6697
      @davianjabari6697 3 роки тому

      @Lucian Grayson thanks, signed up and it seems like they got a lot of movies there =) I appreciate it !

    • @luciangrayson2517
      @luciangrayson2517 3 роки тому

      @Davian Jabari Happy to help :)

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

    Totally confused man