Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jortfal/terraform-azure-resource-group
- Owner: jortfal
- License: apache-2.0
- Created: 2021-05-06T17:59:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T08:06:26.000Z (8 months ago)
- Last Synced: 2024-12-12T00:44:55.429Z (27 days ago)
- Language: HCL
- Size: 4.18 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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(| n/a | yes |
object({
name = string
location = string
tags = map(string)
})
)## 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.