Terraform Remote State Backend using S3 and DynamoDB

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

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

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

    You are a life saver, really well explained was completing a lab could set up the EC2 instances and use variables fine. Configuring the S3 backend with an updated version of Terraform was too hard to do alone. Thank you 🙏

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

      Happy to help ☺️
      Also checkout the terraform playlist if that help

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

    Thank you for this. saved me hours of tutorials

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

      You are welcome 🤗
      Please share and subscribe 🙏

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

    best video on sf management many thanks for sharing

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

      You are welcome

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

    Thanks CC...much appreciated. Great explanation.

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

      You are welcome

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

    You are lifesaver!!
    Thanks for this project 😊

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

      You are welcome 🤗

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

    Wow this is so accurate!! 👍

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

    Exactly what I wanted

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

      👍🏻👍🏻

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

    Nice tutorial!

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

      Thank you! Cheers!

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

    Thank you cery much, this video is very helpful

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

      Thanks! Happy to help ☺️

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

    hi can you explaination about given path. any condition in giving the path

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

    this video is very helpful. I have one doubt "AES256" is it a name or what? if it is a name can we give whatever as name right

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

    Thanks for this video

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

      Your welcome 🙏

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

    Hi. Thanks for your wonderful videos. I currently have multiple projects and I’m using one S3 bucket for my state backend. These multiple project state files are separated by paths in the S3 bucket. Now, I want to implement DynamoDB state file lock. Since I have multiple projects, can I use only one DynamoDB table, like I used one S3 bucket for my state file backend? If the answer is yes, how does DynamoDB separate and isolate the locks for each project in this table? Or do I have to create multiple DynamoDB table for all my projects? Your guidance and thoughts on this would be appreciated.

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

    Tell me if the state file is deleted, what we need to do to get back state file.

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

    Hi
    I Have aready created a Database and other infra without backend.tf . If I create now will there be a problem

  • @PriyaDharshini-s9b
    @PriyaDharshini-s9b 4 หลายเดือนก่อน

    Hi , thanks for the tutorial. after moving state file to remote backend , i keep getting the following error from the next init or plan. Any idea how to resolve this? Error: Error acquiring the state lock

    │ Error message: operation error DynamoDB: PutItem, https response error
    │ StatusCode: 400, RequestID:
    │ │ ConditionalCheckFailedException: The conditional request failed

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

    Hey Champ, how do I store multiple state files in s3?

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

    Hello,
    How to make use of this state file while working in a team,
    do you have to pull the remote s3 state file to local ?
    ie, if any other user in the team wanted to know what resources have already been created, how do you make use of this remote s3.

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

      This state file is stored on S3 but can be pulled by anyone in the team, so it’s centrally accessible to all and lock let’s you make change one at a time to avoid state corruption.
      So everyone can work collaboratively 🤝

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

    I have try to done that but in my side o am getting so many errors like missing lock items, operation error DynamoDB: PutItein and not able to exesting s3 bucket but i have to init the script

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

    I bro I can't be able to push the code to GitHub coz my file exceed 100 mb .. so what to do I have tried installing lfs also .. in my centos AWS instance

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

    Hi, Thanks for the video. I followed the same steps and ran but it doesn't show "Acquiring state lock" when i run "terraform plan" or terraform apply" command. Please help on this.

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

      You can run the terraform plan command with force unlock parameter : terraform plan -lock=false

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

    Thanks for the tutorial, I was able to follow the steps and the terraform.tfstate file was on s3 bucket, and it the same time i have the terraform.tfstate file locallly on my computer inside the .terraform file, and if I tried deleting locally, it will download it again after running terraform init, is this normal? Can you explain if I am doing anything wrong, thanks

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

      Make sure you have backend block with s3 and dynamodb defined and then run terraform init to migrate state from local to s3 👍🏻
      Feel free to ask if need help

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

    how to lock the tf.state in AWS S3 so that other cant write to it?

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

      Using dynamo db terraform lock

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

      hello@@cloudchamp- where in your video I can find how to lock the tf.state so others cant write to it? thanks

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

      ​@@nelsondario4762the video addressed about pushing state file to s3 and Dynamodb is used just to lock parallel execution. It's one at time.

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

    👍👍👍👍👍

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

    👏👏

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

    Perfecd!!

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

    Hi I am getting error for backend
    Successfully configured the backend "s3"! Terraform will automatically
    use this backend unless the backend configuration changes.
    Error refreshing state: AccessDenied: Access Denied
    status code: 403, request id: 13YNJNZ963P0G2PC, host id: BesL3R7isQNbpgHpncUwj1Eg9kioyJLxo4Gxw0fHCtKZzqM7vrKlT2Dw+ijf0WNcwjYBJLfOWGE=
    Any clue

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

      Make sure you have the proper access and you have configured aws by inserting the right keys

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

    Awesome

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

      Thank you Jhanvi ☺️🤝

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

    Your champ

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

    what is your Age bro?

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

      22

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

      @Cloud Champ cool bro, I'm 21, love your videos.