How to use Terraform depends_on meta tag? - Part 24

preview_player
Показать описание
▬▬▬▬▬▬ 🚀 Top resource to learn Cloud Computing ▬▬▬▬▬▬

▬▬▬▬▬▬ 🗓️ Book Me for Consultation ▬▬▬▬▬▬

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 ⭐️ ▬▬▬▬▬▬

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.
Рекомендации по теме
Комментарии
Автор

Completed the Terraform playlist. It's really awesome, revised every concept. Thanks a lot Rahul.

ravireddy
Автор

Dear Rahul thanks a lot for your all videos, your videos are keys to learning and upgrading skills.

happylearningtricks
Автор

Hey Rahul thank you so much for the series on ansible and terraform, watched all the videos in both playlists. Now an feeling confident on these two tools. Thanks a lot.

Can you please make a video session on ansible tower and terraform cloud

rkbompalli
Автор

your video is very helpful to me for learning terraform

ankita
Автор

sir actually i have a doubt like how to add terraform dependes_on in module

PHOENIX-hefl
Автор

wonderful playlist its really very helpful

kannadalli_mahiti
Автор

How terraform destroy works ? first it will delete ec2 instance and then s3 buckets?

prabu_deva
Автор

completed all 24 vidoes in the playlist now i have confident on terraform

Kalaiarasan_Balu
Автор

hello, I sent you an email on the modules video, could you take a look when possible? thank you and congratulations

leandrojpg