https://github.com/dodevops/terraform-azure-basics
Highly opinionated management of very basic resources (resource groups, locks) for Azure
https://github.com/dodevops/terraform-azure-basics
azurerm terraform-module
Last synced: 10 months ago
JSON representation
Highly opinionated management of very basic resources (resource groups, locks) for Azure
- Host: GitHub
- URL: https://github.com/dodevops/terraform-azure-basics
- Owner: dodevops
- License: mit
- Created: 2021-05-04T11:43:30.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T10:46:33.000Z (almost 3 years ago)
- Last Synced: 2025-03-11T16:23:05.192Z (over 1 year ago)
- Topics: azurerm, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/dodevops/basics/azure/latest
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```hcl
module "azure-basics" {
source = "dodevops/basics/azure"
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:
- [azurerm_management_lock.resource-group-level](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_lock) (resource)
- [azurerm_proximity_placement_group.ppg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/proximity_placement_group) (resource)
- [azurerm_resource_group.azure-resource-group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) (resource)
## 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](https://github.com/dodevops/terraform-module-tools) to check and generate the documentation by running
docker run -v "$PWD":/terraform ghcr.io/dodevops/terraform-module-tools:latest