
Use the "newres" cli to make Terraform modules faster.
newres is a command line utility that helps you write Terraform modules faster. It supports multiple cloud providers (e.g. azure, aws, gcp), and several other providers too (e.g. kubernetes & tls). Usage To use, is as easy as: 1 newres -dir [DIRECTORY] [-u] [-r RESOURCE_TYPE] …e.g. for an Azure Resource Group: 1 newres -dir ./ -r azurerm_resource_group This will create the ‘main.tf’ and ‘variables.tf’ covering the arguments from the schema documentation. The example screenshot below shows the start of main.tf for a cognitive services account resource, illustrating the coverage and the use of dynamics for optional blocks.