Terraform state file | How to manage local statefile | How to save remote statefile on AWS S3 Bucket

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 85

  • @kamkum2k
    @kamkum2k 2 ปีที่แล้ว +1

    your teaching style is excellent, to the point, no waste of time. I just like your style ... Thanks

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      I appreciate that!

  • @rajeshk920
    @rajeshk920 2 ปีที่แล้ว

    this is the best explanation i ever seen. your explaining slowly and clearly in detailed

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Thanks for your feedback it is much appreciated

  • @akhilsantosh3342
    @akhilsantosh3342 ปีที่แล้ว

    You will definitely deserve more than this man.

  • @supun_sandaruwan
    @supun_sandaruwan 4 หลายเดือนก่อน

    Great content, Very clear explanation. Thank you sir ❤ Keep it up. Now I am going to watch all your terraform playlist 🔥

    • @RahulWagh
      @RahulWagh  4 หลายเดือนก่อน +1

      You are most welcome

  • @rishabhsingh1768
    @rishabhsingh1768 ปีที่แล้ว

    amazing videos @rahul very easy to understand

  • @ElCanalDeJoshOfficial
    @ElCanalDeJoshOfficial 3 ปีที่แล้ว +2

    You are doing a very great job mate with these videos. Thanks!

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว

      glad to hear that

  • @blessingjennifer24
    @blessingjennifer24 2 ปีที่แล้ว +1

    Very explained. Thanks

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @prathmeshmohite7653
    @prathmeshmohite7653 2 ปีที่แล้ว

    Very good clarification. Thanks for sharing with us. Waiting for your next videos.

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      More to come!

  • @kirangosavi466
    @kirangosavi466 ปีที่แล้ว

    Simply awesome, please keep it up 😊

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      Thanks a lot 😊

  • @peterg5497
    @peterg5497 2 ปีที่แล้ว +1

    Great Explanation Sir!

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว +1

      Glad you liked it

  • @csgs13
    @csgs13 2 ปีที่แล้ว +1

    Hii sir
    At 12:20 secs we are rerunning terraform init because we added extra resources in you code
    Or we destroy the resources

  • @praveenbhogade
    @praveenbhogade 3 ปีที่แล้ว

    Thanks for another amazing learning session :)

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว

      You are welcome

  • @6699anish
    @6699anish 11 หลายเดือนก่อน

    @Rahul wagh, Thanks for the wonderful session.... Since I am new to this field having this doubt, If we are using an existing bucket for storing state files, How the terraform is getting permission to write on this S3. IS there any separate configuration needed for this?

  • @ravib6639
    @ravib6639 3 ปีที่แล้ว +1

    The way of explanation very nice.. could you please share the videos azure with terraform also...

  • @jwood9799
    @jwood9799 2 ปีที่แล้ว

    Great video! Thanks!

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      You're welcome!

  • @AtreyaNadig
    @AtreyaNadig 6 หลายเดือนก่อน

    Make videos on terraform to create resources in multi regions and maintaining state files dynamically in local machine

  • @forexmeter3900
    @forexmeter3900 2 ปีที่แล้ว

    Very well explained!

  • @shubhamkumar-ym5cq
    @shubhamkumar-ym5cq 2 ปีที่แล้ว

    great work sir , plz bring circleci tutorials also...

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      In will try my best to prepare something around circle ci

  • @ptalukder
    @ptalukder 2 ปีที่แล้ว

    Love your videos thank you

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Thanks for watching!

  • @senthilkumar5129
    @senthilkumar5129 ปีที่แล้ว

    Well Done grate explanation

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      You are welcome

  • @bhanuprakashssit
    @bhanuprakashssit ปีที่แล้ว

    thank you so much very nicely explained

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      You are most welcome

  • @mimathew1
    @mimathew1 ปีที่แล้ว

    Good presentation

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      So nice of you

  • @naveedali33
    @naveedali33 ปีที่แล้ว

    Keep going sir

  • @shreedharbatthad4714
    @shreedharbatthad4714 ปีที่แล้ว

    one word god of terraform

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      Happy to share the knowledge

  • @Ashok_vlogs18
    @Ashok_vlogs18 9 หลายเดือนก่อน

    Sir please make a dedicated video on GITLAB CICD

    • @RahulWagh
      @RahulWagh  9 หลายเดือนก่อน

      Sure

  • @balarampaira
    @balarampaira 2 ปีที่แล้ว +1

    Thank you sir for the amazing video, I have one question if by mistake delete the tfstate file then is it possible to recover it?

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว +1

      Well its really impossible to recover unless you have it somewhere on version control or remote location s3

    • @shilashm5691
      @shilashm5691 2 ปีที่แล้ว

      You can do using backup file🤥

  • @sunilkumar-jt9nh
    @sunilkumar-jt9nh 2 ปีที่แล้ว

    It’s helpful for devops Guys

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว +1

      Glad you liked it

  • @MunnaK022
    @MunnaK022 2 ปีที่แล้ว +1

    Helpfull video sir

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Keep watching

  • @ratnachitluri748
    @ratnachitluri748 2 ปีที่แล้ว

    Can you pls share the steps for migrating the state from some given S3 location to some other location

  • @gocrow23
    @gocrow23 2 ปีที่แล้ว

    Really great video tutorial! May I request you to include spinning a VM in Azure using TF automation, how to merge two state file at remote backend codebase, etc. if possible!!
    Thanks!

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว +1

      Well merging terraform state file does not sound a good idea, in any case the merging of terraform state file should be avoided

    • @gocrow23
      @gocrow23 2 ปีที่แล้ว

      @@RahulWagh Thanks for the reply, such meaningful scenario based learnings helps beginners a lot. Pls try to make using Azure services if possible.

  • @kushelg6286
    @kushelg6286 3 ปีที่แล้ว

    Very helpful. Thank you.

  • @subhajyotidas7833
    @subhajyotidas7833 ปีที่แล้ว

    great video

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      Thanks for the visit

  • @pareshmarathe334
    @pareshmarathe334 2 ปีที่แล้ว

    It helped me a lot. Cant thanks enough..!

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      You are welcome

  • @ravindraperisetla4904
    @ravindraperisetla4904 2 ปีที่แล้ว

    Please create a video on Null resource in Terraform

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      It is in my pipeline you will soon see it on my channel

  • @zerokneospark7363
    @zerokneospark7363 2 หลายเดือนก่อน

    Could we create S3 bucket in Terraform code itself and give depends_on to create "backend" and other resources

  • @naikodichaitanya
    @naikodichaitanya หลายเดือนก่อน

    hi rahul , only statefile is store in s3 . how about main.tf . if i lost the main.tf . is any there way to recover from the .tfstate. how about realtime when it comes to main.tf ?

  • @rmaheshkannan1768
    @rmaheshkannan1768 3 ปีที่แล้ว

    Thank you sir. 🙏

  • @DanielWeikert
    @DanielWeikert 2 ปีที่แล้ว

    When I run terraform state pull it does not update my main.tf file? Isn' t it like git? I would have assumed that i have as an example an empty main.tf file and with the pull I would istantly get the update with all resources in the main.tf as well? Thanks

  • @Rahul-ik4fd
    @Rahul-ik4fd 2 หลายเดือนก่อน

    Can we save the multiple versions of terraformstate file remotely?

    • @RahulWagh
      @RahulWagh  2 หลายเดือนก่อน +1

      Yes you can save remotely

  • @ashwindhaka5433
    @ashwindhaka5433 8 หลายเดือนก่อน

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

    • @RahulWagh
      @RahulWagh  8 หลายเดือนก่อน

      Yes but why you wanna do that

    • @ashwindhaka5433
      @ashwindhaka5433 8 หลายเดือนก่อน

      @@RahulWagh Thanks for reply , This question was asked in an interview If it is possible please answer 2-3 lines.

  • @akshaykadam8233
    @akshaykadam8233 ปีที่แล้ว

    Hi @RahulWagh
    if i have not created azure resources using terraform and now team wants me to destroy all resources using terraform. what command i need to execute can i run terraform destroy command directly or i need to first run terraform init, terraform plan, terraform validate and finally terraform destroy? could you please guide me on this?

  • @ananthakalyani5838
    @ananthakalyani5838 2 ปีที่แล้ว

    Can u please make a video terraform azure

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว +1

      I will add it into my todo list

    • @ananthakalyani5838
      @ananthakalyani5838 2 ปีที่แล้ว

      @@RahulWagh thank you so much

  • @galleon8129
    @galleon8129 6 หลายเดือนก่อน

    What if you want to create a new resource that has a different ami values resource id’s that are not yet existing in AWS using Terraform? I ask because there’s no point reusing details of existing AWS resources like EC2 instances.

  • @novemberPrincess1109
    @novemberPrincess1109 ปีที่แล้ว

    Hi, I have a doubt, i am trying to do minor version upgrade for aurora rds postgres engine via terraform, am faing an error which says InvalidDBClusterStateFault:Cluster cannot be deleted, it still contains DB instances in non-deleting state. could you please share steps to upgrade minor version of aurora rds postgres engine via terraform. Kindly Assist. Thank you in advance!

  • @aleemshariff8551
    @aleemshariff8551 ปีที่แล้ว

    Hello Rahul, Your videos are very helpful. Thanks alot.
    I am getting the below error while trying to add terraform.tfstate file to the S3 bucket.
    Error: error configuring S3 Backend: no valid credential sources for S3 Backend found.
    Hope you can help me with this. :)

    • @famorotitomike5982
      @famorotitomike5982 ปีที่แล้ว

      I got the same error message. How did you fix it?

  • @ponnagantichandu4633
    @ponnagantichandu4633 2 ปีที่แล้ว

    How to copy local jar file into kubernates pod using terraform script

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      But why you wanna copy manually to k8s pod ?

    • @ponnagantichandu4633
      @ponnagantichandu4633 2 ปีที่แล้ว

      @@RahulWagh I need to achieve automation in terraform itself so that I can use only terraform script

  • @sandeepsastry3123
    @sandeepsastry3123 2 ปีที่แล้ว

    I do not think terraform plan will create or update the state file. Its the terraform apply that changes the state file.

  • @vamsitravelworld
    @vamsitravelworld 2 ปีที่แล้ว

    Please help to fix this issue:
    Initializing Terraform Cloud...

    │ Error: Invalid legacy provider address

    │ This configuration or its associated state refers to the unqualified
    │ provider "aws".

    │ You must complete the Terraform 0.13 upgrade process before upgrading to
    │ later versions.

    Operation failed: failed running terraform init (exit 1)