The D.R.Y. principle, "Don't Repeat Yourself", is generally followed by developers in the Terraform community. Terraform offers iteration options such as for loops to allow developers to define resources or settings once, and have those configurations multiplied and managed as a group. This results in less code for a team to manage in the long run.
Terraform has three main iteration options: the count and for_each arguments, and for loops. In this lab, you will implement each one of these options and learn how to choose the right option to meet your needs.
Upon completion of this lab, you will be able to:
Familiarity with the following will be beneficial but is not required:
The following lab can be used to fulfill the prerequisites:
June 9th, 2023 - Updated instance image
April 27th, 2023 - Updated theia to enable autosave