Terraform Remote State Backend using S3 and DynamoDB

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

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

  • @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 🙏

  • @practicaldeen5333
    @practicaldeen5333 7 месяцев назад

    Thanks CC...much appreciated. Great explanation.

  • @gamingchamp3070
    @gamingchamp3070 Год назад +1

    Exactly what I wanted

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

    You are lifesaver!!
    Thanks for this project 😊

  • @gamingchamp3070
    @gamingchamp3070 Год назад +2

    Wow this is so accurate!! 👍

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

    Thank you cery much, this video is very helpful

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

      Thanks! Happy to help ☺️

  • @adedayoademefun8895
    @adedayoademefun8895 3 месяца назад

    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.

  • @narasimhakudva
    @narasimhakudva 10 дней назад

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

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

    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

  • @PriyaDharshini-s9b
    @PriyaDharshini-s9b Месяц назад

    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

  • @gudamahendar6992
    @gudamahendar6992 5 месяцев назад

    Your champ

  • @maheshpansare7508
    @maheshpansare7508 10 месяцев назад

    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

  • @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

  • @furaofeliz3180
    @furaofeliz3180 Год назад +1

    Nice tutorial!

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

    Thanks for this video

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

    👏👏

  • @kavyas5748
    @kavyas5748 9 месяцев назад

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

  • @martinthong125
    @martinthong125 7 месяцев назад

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

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

    👍👍👍👍👍

  • @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

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

    Awesome

  • @Emil_Benny
    @Emil_Benny 10 месяцев назад

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

  • @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

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

    Perfecd!!

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

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

    • @cloudchamp
      @cloudchamp  5 месяцев назад

      Using dynamo db terraform lock

    • @nelsondario4762
      @nelsondario4762 5 месяцев назад

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

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

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

    what is your Age bro?