Exercises
8d Ex Dynamic Blocks
  • At this point you should have a property.tf file that creates a property with a single hostname. If not review the Exercise #2 in module 5. Resources.

  • You should also have a list of hostnames in a local variable named apps_hostnames from the previous exercise in module For Expressions.

Configure

Add a dynamic block in the akamai_property resource to add all the hostnames in the apps_hostnames list to the property. The hostnames can share the same edge hostname and other required parameters.

Plan/Apply

Run terraform plan to confirm your changes. Run terraform apply if all looks in order.

Commit

Commit your change and push it to GitHub.