Student Reviews
( 5 Of 5 )
1 review
Video of Terraform state locking using DynamoDB(LockID) and S3 Bucket - Part 14 in Terraform course by Rahul Wagh channel, video No. 14 free certified online
Instruction's Guides
Terraform state locking using DynamoDB (aws_dynamodb_table) - https://jhooq.com/terraform-state-file-locking/
Terraform Playlist - https://www.youtube.com/watch?vjJX6S5JAGpI&listPL7iMyoQPMtAOz187ezONf7pL8oGZRobYl
GitHub Repo - https://github.com/rahulwagh/Terraform-Topics
Terraform state locking is really important when you work in a team where multiple developers are trying to update the same Terraform state file.
It prevents Terraform state file(terraform.tfstate) from accidental updates by putting a lock on the file so that the current update can be finished before processing the new change. The feature of Terraform state locking is supported by AWS S3 and Dynamo DB(LockID).
In this lab session, we will be looking into -
1. How to Store Terraform state file remotely on S3?
2. Create DynamoDB table with LockID as Key
3. Simulate the terraform state locking by creating multiple terraform projects using the same Terraform state file.
Timestamps
0:00 - Intro
0:12 - Usecase for simulating the terraform locking
01:35 - Project walkthrough
04:32 - Create S3 Bucket
05:12 - Create Dynamo DB table with LockID as key
06:17 - Apply the terraform configuration to perform the terraform state locking
For more details on Terraform Data source click here -https://www.terraform.io/docs/language/data-sources/index.html
To learn more on DevOps visit - https://jhooq.com/categories/terraform/
Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.
Video is copyrighted and can not be re-distributed on any platform.
#terraform #devops