© Navin Sabharwal, Sarvesh Pandey and Piyush Pandey 2021
N. Sabharwal et al.Infrastructure-as-Code Automation Using Terraform, Packer, Vault, Nomad and Consul https://doi.org/10.1007/978-1-4842-7129-2_3

3. Understanding Terraform Programming Constructs

Navin Sabharwal1  , Sarvesh Pandey2 and Piyush Pandey3
(1)
New Delhi, Delhi, India
(2)
Noida, UP, India
(3)
New Delhi, India
 
This chapter covers Terraform’s programming components. Designing an infrastructure with Terraform code requires some basic understanding of the programming components. The following are the programming components covered in this chapter.
  • HCL

  • Resources

  • Providers

  • Input variables

  • Output values

  • Local values

  • Modules

  • Data sources

  • Backend configurations

  • Provisioners

Configuration Language

Terraform ...

Get Infrastructure-as-Code Automation Using Terraform, Packer, Vault, Nomad and Consul: Hands-on Deployment, Configuration, and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.