Intro
With the exciting new announcement for Terraform Tests I couldn’t help but take them for a test drive. For our use case we will build on a prior post Terraform Azure: Reusable SQL Database Configurations. In the last post we created a module to deploy SQL Servers. Today we will add a new default prefix to SQL Server name and then build a test to check the name of the server.
Update SQL Server Module
We have decided we want all of our SQL Servers to have a standard prefix in their name. For Data Artisans we want to use the prefix dart-. To update the module with this functionality we can use string interpolation.