TA-004

Introduction to Expressions and Functions

Writing dynamic configuration with conditional and for expressions, dynamic blocks and string templates, and using Terraform's built-in functions and terraform console.

  • 3 lessons
  • Module quiz

Expressions and functions make configuration dynamic: choosing values, transforming collections, generating nested blocks and building strings.

What the exam expects

Expect questions and snippets using conditionals, for and splat expressions, dynamic blocks, string templates and common built-in functions, and on what terraform console does.

How this module is organized

Conditional, for and Splat Expressions covers expressions. Dynamic Blocks and String Templates covers nested block generation and templates. Built-in Functions and terraform console covers the function library.

  1. Conditional, for and Splat Expressions Lesson 1
  2. Dynamic Blocks and String Templates Lesson 2
  3. Built-in Functions and terraform console Lesson 3
  4. Practise and review
  5. Checkpoint Practice activities across the module
  6. Test your knowledge 6 questions