Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.38 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.38 KB

Terraform Module Template

SCM Compliance Equinor Terraform Baseline Conventional Commits

Template repository for Terraform modules.

Development

  1. Clone this repository:

    git clone https://github.com/equinor/terraform-azurerm-foobar.git
  2. Login to Azure:

    az login
  3. Set active subscription:

    az account set -s <SUBSCRIPTION_NAME_OR_ID>
  4. Set environment variables:

    export TF_VAR_resource_group_name=<RESOURCE_GROUP_NAME>
    export TF_VAR_location=<LOCATION>

Testing

  1. Initialize working directory:

    terraform init
  2. Execute tests:

    terraform test

    See terraform test command documentation for options.

Contributing

See Contributing guidelines.