Template repository for Terraform modules.
-
Clone this repository:
git clone https://github.com/equinor/terraform-azurerm-foobar.git -
Login to Azure:
az login -
Set active subscription:
az account set -s <SUBSCRIPTION_NAME_OR_ID> -
Set environment variables:
export TF_VAR_resource_group_name=<RESOURCE_GROUP_NAME> export TF_VAR_location=<LOCATION>
-
Initialize working directory:
terraform init -
Execute tests:
terraform testSee
terraform testcommand documentation for options.