Skip to content

Latest commit

 

History

History
128 lines (70 loc) · 2.51 KB

README.md

File metadata and controls

128 lines (70 loc) · 2.51 KB

Basic ressources for Azure

Introduction

This module manages very basic resources for Azure. These resources are included:

  • The resource group
  • Deletion lock on resource group level
  • Proximity placement groups

Usage

Instantiate the module by calling it from Terraform like this:

module "azure-basics" {
  source  = "dodevops/basics/azure"
  version = "<version>"
}

Requirements

The following requirements are needed by this module:

  • terraform (>=1.0.0)

  • azurerm (>=3.0.0)

Providers

The following providers are used by this module:

  • azurerm (>=3.0.0)

Modules

No modules.

Resources

The following resources are used by this module:

Required Inputs

The following input variables are required:

location

Description: The azure location used for azure

Type: string

project

Description: Three letter project key

Type: string

stage

Description: Stage for this ressource group

Type: string

Optional Inputs

The following input variables are optional (have default values):

lock

Description: Lock ressource group for deletion

Type: bool

Default: true

manage_proximity_placement_group

Description: Manage a proximity placement group for the resource group

Type: bool

Default: true

tags

Description: Map of tags for the resources

Type: map(any)

Default: {}

Outputs

The following outputs are exported:

location

Description: The location input variable (can be used for dependency resolution)

lock_id

Description: The ID of the managed resource group lock

ppg_id

Description: The ID of the generated proximity placement group

resource_group

Description: The name of the generated resource group

resource_group_id

Description: The ID of the generated resource group

Development

Use the terraform module tools to check and generate the documentation by running

docker run -v "$PWD":/terraform ghcr.io/dodevops/terraform-module-tools:latest