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

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.io/docs/command...
www.terraform.io/docs/state/i...
Terraform keep state file remotely in S3
• Terraform AWS - terraf...
GitHub terraform code url
github.com/sbrTechWorld/aws-t...

Пікірлер: 22

  • @VineethYadav-nq6eh
    @VineethYadav-nq6eh2 ай бұрын

    Super explanation ❤❤

  • @mayurkasar4467
    @mayurkasar44673 ай бұрын

    Thank You sir !!

  • @kslvvaraprasad5864
    @kslvvaraprasad58643 жыл бұрын

    very good explanation....

  • @sandeepkota1619
    @sandeepkota16193 жыл бұрын

    Very good, Thanks.

  • @mahantheshmr6903
    @mahantheshmr69032 жыл бұрын

    It's very helpful...

  • @sairam-dy9my
    @sairam-dy9my3 жыл бұрын

    terraform import very nice , thanks for uploading

  • @sbrtechworld2570

    @sbrtechworld2570

    3 жыл бұрын

    Thanks

  • @justuploadit1106
    @justuploadit11062 жыл бұрын

    Excellent

  • @KiranKumar-fo8kr
    @KiranKumar-fo8kr3 жыл бұрын

    Nice explanation

  • @sbrtechworld2570

    @sbrtechworld2570

    3 жыл бұрын

    Thank you

  • @Cloud-Radio
    @Cloud-Radio3 жыл бұрын

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

  • @venkatpathakamuri5170
    @venkatpathakamuri51702 жыл бұрын

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

  • @srinipulavarthi8005
    @srinipulavarthi80053 жыл бұрын

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

  • @shakilahamed7156
    @shakilahamed71563 жыл бұрын

    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...

  • @prathibhap7770
    @prathibhap77703 жыл бұрын

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

  • @davianjabari6697

    @davianjabari6697

    2 жыл бұрын

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

  • @luciangrayson2517

    @luciangrayson2517

    2 жыл бұрын

    @Davian Jabari Flixportal =)

  • @davianjabari6697

    @davianjabari6697

    2 жыл бұрын

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

  • @luciangrayson2517

    @luciangrayson2517

    2 жыл бұрын

    @Davian Jabari Happy to help :)

  • @ajitdalvi596
    @ajitdalvi5968 ай бұрын

    Totally confused man