تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح How to use Terraform depends_on meta tag? - Part 24 ضمن كورس Terraform شرح قناة Rahul Wagh، الفديو رقم 24 مجانى معتمد اونلاين
Guide and Repository
User guide - https://jhooq.com/terraform-depends-on/
Github Repo - https://github.com/rahulwagh/Terraform-Topics
In Terraform, the depends_on meta-argument is used to create an explicit dependency between resources. It is used to specify that a particular resource depends on another resource and that the dependent resource should be created or updated before the resource that depends on it.
This allows Terraform to properly order the creation, modification, and destruction of resources, ensuring that dependent resources are created or modified only after the resources they depend on have been created or modified.
For example -
Let's say you have a Terraform configuration that creates an Amazon S3 bucket and an Amazon EC2 Instance.
The Amazon EC2 Instance depends on the Amazon S3 bucket, so it needs to be created the bucket before creating the EC2 instance. To specify this dependency, you would use the "depends_on" argument in the object resource block of EC2 Instance
In this tutorial we will take a look on -
1. What is terraform depends_on metatag?
2. How to use terraform depends_on metatag?
3. Demo example showing casing dependency between AWS EC2 and S3 Bucket.
Time Stamps
0:00 - Introduction
00:36 - Example to understand terraform depends_on meta tag?
02:32 - Demo of terraform depends_on meta tag?
Follow me
Linkedin - https://www.linkedin.com/in/rahul-wagh/
Twitter - https://twitter.com/wagh_rahul
To learn more on DevOps visit - https://jhooq.com/
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.