Using templatefile in Terraform

Опубликовано: 09 Октябрь 2024
на канале: Ned in the Cloud
13,084
301

Templates in Terraform are a way to create long strings based on values stored in your Terraform configuration or generated by data sources and resources. The traditional approach was to use the template_file data source, but newer versions of Terraform have the templatefile function. Why would you use the newer function, and when would you use templates at all. Those are some of the questions I'll try to answer in this video.

Here's the HashiTalk video:    • Terraform Config Drift  How to Handle...  

GitHub Repo: https://github.com/ned1313/terraform-...

Terraform Certification Guide: https://leanpub.com/terraform-certified/

-----------------------------------------------------------------------------------------------------

Website: https://nedinthecloud.com
Pluralsight: https://app.pluralsight.com/profile/a...
GitHub: https://github.com/ned1313

Music by Evan Williams ©2020

Intro 0:00
Template_file vs. templatefile 2:22
Template_file syntax 5:51
Using the template_file data source 7:12
Templatefile syntax 14:10
Using the templatefile function 15:08
Skipping templates altogether 17:31
Outro 20:30