Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jortfal/terraform-azure-resource-group

Terraform module for create ✨Resource Groups✨ on Microsoft Azure
https://github.com/jortfal/terraform-azure-resource-group

Last synced: 24 days ago
JSON representation

Terraform module for create ✨Resource Groups✨ on Microsoft Azure

Awesome Lists containing this project

README

        

# Azure Resource Group Terraform Module

[Terraform](https://www.terraform.io/) module for create [Resource Groups](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-portal#what-is-a-resource-group) on Microsoft Azure.

![GitHub release (latest by date)](https://img.shields.io/github/v/release/jortfal/terraform-azure-resource-group)
![GitHub Release Date](https://img.shields.io/github/release-date/jortfal/terraform-azure-resource-group)
![GitHub license](https://img.shields.io/github/license/jortfal/terraform-azure-resource-group)
[![Build Status](https://github.com/jortfal/semantic-release-terraform-config/workflows/Test/badge.svg)](https://github.com/jortfal/terraform-azure-resource-group/actions?query=workflow%3ATest+branch%3Amaster)
![Maintenance](https://img.shields.io/maintenance/yes/2021?color=green)
![Maintainer](https://img.shields.io/badge/maintainer-jortfal-green)

## Usage

### How create only one resource group?

```hcl
module "single_resource_group" {

source = "[email protected]:jortfal/terraform-azure-resource-group.git?ref=vX.Y.Z

rgs = [
{
name = "et-prod-weu-rg-example-001"
location = "West Europe"
tags = {
Owner = "jortfal"
Environment = "production"
}
}
]
}
```

### How create multiple resource groups?

```hcl
module "single_resource_group" {

source = "[email protected]:jortfal/terraform-azure-resource-group.git?ref=vX.Y.Z

rgs = [
{
name = "et-prod-weu-rg-example-001"
location = "West Europe"
tags = {
Owner = "jortfal"
Environment = "production"
}
},
{
name = "et-prod-weu-rg-example-002"
location = "West Europe"
tags = {
Owner = "jortfal"
Environment = "production"
}
},
{
name = "et-prod-weu-rg-example-003"
location = "West Europe"
tags = {
Owner = "jortfal"
Environment = "production"
}
},
{
name = "et-prod-weu-rg-example-004"
location = "West Europe"
tags = {
Owner = "jortfal"
Environment = "production"
}
},
{
name = "et-prod-weu-rg-example-005"
location = "West Europe"
tags = {
Owner = "jortfal"
Environment = "production"
}
}
]
}
```

## Known issues

No issue is creating limit on this module.

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0.0, < 2.0.0 |
| [azurerm](#requirement\_azurerm) | >= 2.30.0, < 4.0.0 |

## Providers

| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >= 2.30.0, < 4.0.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [azurerm_resource_group.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [rgs](#input\_rgs) | A list of resource group objects |

list(
object({
name = string
location = string
tags = map(string)
})
)
| n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [id](#output\_id) | The ID of the Resource Group |

## Authors

Module created and managed by `@jortfal` [José Manuel Ortega Falcón](https://www.jortfal.es).

## License

Apache 2 Licensed. See [`LICENSE`](https://github.com/jortfal/terraform-azure-resource-group/blob/main/LICENSE) file for full details.