Skip to content

Template repository for Terraform modules

License

Notifications You must be signed in to change notification settings

equinor/terraform-module-template

Repository files navigation

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.

About

Template repository for Terraform modules

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •