How to store Terraform state file in Azure Storage | Terraform Remote Backend in Azure Storage

Автокөліктер мен көлік құралдары

www.coachdevops.com/2022/03/h...
✓ What is Terraform state file?
✓ Where does Terraform stores state file locally by default?
✓ Why we need to store terraform state file remotely?
✓ How to store state file remotely in Azure blob storage?
✓ Pre-requisites
✓ Demo
⁃ Authenticate to Azure cloud using Azure CLI
⁃ Create main.tf
⁃ run terraform commands to see tf state file in local machine
⁃ Setup Azure storage account, container using a script
⁃ Create backend.tf file
⁃ perform terraform init
⁃ perform terraform apply
⁃ verify terraform.tfstate file created in Azure blob container

Пікірлер: 21

  • @chetanrokade5156
    @chetanrokade51563 ай бұрын

    Great Sir, Very straight forward explanation.

  • @DevOpsCoach

    @DevOpsCoach

    3 ай бұрын

    Glad you liked it thank you

  • @pjj7466
    @pjj74662 жыл бұрын

    sir post daily a video.. that will grow your channel in diffrent level... belive me your conent was awsome..

  • @DevOpsCoach

    @DevOpsCoach

    2 жыл бұрын

    Thank you so much! Posting daily will be really challenging! But will try at least once a week

  • @ramseym6516
    @ramseym65162 жыл бұрын

    Thank you so much sir for sharing this - really helped in expanding knowledge

  • @DevOpsCoach

    @DevOpsCoach

    2 жыл бұрын

    Glad it was helpful!

  • @user-mo4np4vb1e
    @user-mo4np4vb1e10 ай бұрын

    Awesome Sir 😊

  • @DevOpsCoach

    @DevOpsCoach

    10 ай бұрын

    Thanks a lot 😊

  • @kirank3052
    @kirank30522 жыл бұрын

    awesome video , liked it

  • @DevOpsCoach

    @DevOpsCoach

    2 жыл бұрын

    Thank you 👍

  • @anshuanand7657
    @anshuanand7657 Жыл бұрын

    Good Job well explained

  • @DevOpsCoach

    @DevOpsCoach

    Жыл бұрын

    Glad it was helpful! Thanks Anshu!

  • @anshuanand7657

    @anshuanand7657

    Жыл бұрын

    Hi,@@DevOpsCoach I wants to read the state file from azure storage can u plz make a video on this using azure it will be more helpful for others also bcz nowadays maximum project is coming to read the file from statefile only.

  • @mkraochirumamilla
    @mkraochirumamilla2 жыл бұрын

    Thanks for your videos and knowledge sharing. What happens if two terraform developers executed terraform apply/destroy concurrently working on the same terraform code base and have two different remote state files in different blob containers?

  • @francoredaelli7167
    @francoredaelli7167 Жыл бұрын

    What about the access_key reported in the site as information needed fot backend.tf ? Without that in the backend.tf the init fails (I'm using terraform 3.33.0).

  • @DevOpsCoach

    @DevOpsCoach

    Жыл бұрын

    it was a typo. key(not access key) is nothing but name of the terraform remote state file.

  • @SpiritualAdda00
    @SpiritualAdda002 жыл бұрын

    How to lock the tf state file in azure storage blob a/c

  • @DevOpsCoach

    @DevOpsCoach

    2 жыл бұрын

    you don't have to lock explicitly. Azure Storage blobs are automatically locked before any operation that writes state.

  • @SpiritualAdda00

    @SpiritualAdda00

    2 жыл бұрын

    @@DevOpsCoach TQ for the information

  • @indranilmondal5509
    @indranilmondal55096 ай бұрын

    how to run this through release pipeline.. unable to provide yes/ no during pipeline run

  • @5451523

    @5451523

    5 ай бұрын

    -auto-approve option after apply which means it's confirmes itsellf

Келесі