ExercisesExercisesContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Introduction
    • Prerequisites
    • Git
    • Linode API
    • Akamai API
    • Declarative Language
    • Core Workflow
    • Providers
    • Data Sources
    • Resources
    • Outputs
      • Variables
      • Locals
      • Environment Variables
    • Expressions
      • References to Values
      • Conditionals
      • For Iterations
      • Dynamic Blocks
    • Meta-Arguments
      • depends_on
      • count
      • for_each
      • lifecycle
    • Built-In Functions
      • Root & Child Modules
      • Module Outputs
    • State File
      • State Storage
      • State Locking
      • State Best Practices
    • Imports
    • Troubleshooting
    • Akamai Examples
    • Akamai Terraform Provider (opens in a new tab)
    • Linode Terraform Provider (opens in a new tab)
    • All Exercises
  • 3 Ex Providers
  • 4 Ex Data Sources
  • 5 Ex Resources
  • 6 Ex Outputs
  • 7a Ex Variables
  • 7b Ex Locals
  • 7c Ex Env Variables
  • 8b Ex Conditionals
  • 8c Ex for Loops
  • 8d Ex Dynamic Blocks
  • 9a Ex Depends On
  • 9b Ex Count
  • 9c Ex for Each
  • 9d Ex Lifecycle
  • 10 Ex Built in Functions
  • 11 Ex Modules
  • 12 Ex State Storage
  • 13 Ex Imports
  • 14 Ex Troubleshooting
Question? Give us feedback → (opens in a new tab)Edit this page
Exercises
10 Ex Built in Functions

Configure

In your main.tf create 3 local variables.

Update

Use at least one built-in function on each variable to change its value.

Outputs

Create outputs for the values. Although not necessary, but for standardization remember to add your outputs to your outputs.tf file.

Plan/Apply

Run terraform plan to show the outputs in the terminal. You can also run terraform apply and that will save the outputs to the Terraform state file.

9d Ex Lifecycle11 Ex Modules

2024 Advanced Solutions Team - Akamai Technical Documentation