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
Great Sir, Very straight forward explanation.
@DevOpsCoach
3 ай бұрын
Glad you liked it thank you
sir post daily a video.. that will grow your channel in diffrent level... belive me your conent was awsome..
@DevOpsCoach
2 жыл бұрын
Thank you so much! Posting daily will be really challenging! But will try at least once a week
Thank you so much sir for sharing this - really helped in expanding knowledge
@DevOpsCoach
2 жыл бұрын
Glad it was helpful!
Awesome Sir 😊
@DevOpsCoach
10 ай бұрын
Thanks a lot 😊
awesome video , liked it
@DevOpsCoach
2 жыл бұрын
Thank you 👍
Good Job well explained
@DevOpsCoach
Жыл бұрын
Glad it was helpful! Thanks Anshu!
@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.
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?
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
Жыл бұрын
it was a typo. key(not access key) is nothing but name of the terraform remote state file.
How to lock the tf state file in azure storage blob a/c
@DevOpsCoach
2 жыл бұрын
you don't have to lock explicitly. Azure Storage blobs are automatically locked before any operation that writes state.
@SpiritualAdda00
2 жыл бұрын
@@DevOpsCoach TQ for the information
how to run this through release pipeline.. unable to provide yes/ no during pipeline run
@5451523
5 ай бұрын
-auto-approve option after apply which means it's confirmes itsellf