What are Terraform Dynamic blocks? - Part 8

Veröffentlicht am: 09 August 2021
auf dem Kanal: Rahul Wagh
22,578
360

▬▬▬▬▬▬ * Instruction's Guides * ▬▬▬▬▬▬

1. Terraform dynamic block - https://jhooq.com/terraform-dynamic-b...
2. Setup EC2 instance on AWS(access_key, secret_key) - https://jhooq.com/terraform-ec2-insta...

Terraform dynamic block behaves pretty much the same as for or for-each loop. It not only iterates over the value range but also creates nested dynamic blocks which can be complex.

Terraform dynamic block usually consists of three elements -

1. Name of dynamic block
2. for_each
3. content

1. Name of dynamic block - You can keep the name of the block as per your choice, terraform does not have very strict rules on defining the dynamic block names

2. for_each - Here you need to provide any collection or structural values which can be iterated

3. content - It is a terraform block or body which will be generated for each value of the for-each loop



▬▬▬▬▬▬ ⭐️ 🕘Timestamps ⭐️ ▬▬▬▬▬▬
0:00 Introduction
0:44 What is terraform dynamic block?
2:20 Terraform block syntax
5:33 Demo of Terraform dynamic block on aws
8:29 Execute terraform dynamic block
10:34 Best practices for using Terraform dynamic block


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.



#devops #aws #terraform #cloud


Auf dieser Seite können Sie das Online-Video What are Terraform Dynamic blocks? - Part 8 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Rahul Wagh 09 August 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 22,578 Mal angesehen und es wurde von 360 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!