Skip to content

Commit

Permalink
Fix module syntax (Azure#19)
Browse files Browse the repository at this point in the history
Will fix example module syntax.
  • Loading branch information
ArgonQQ authored Jul 1, 2020
1 parent 1d56828 commit 3e60f79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ For every resource in `terraform_azurerm` just remove the `azurerm` part of the
example for `azurerm_resource_group` you can use :

```tf
module "naming" "main" {
module "naming" {
source = "Azure/naming/azurerm"
suffix = [ "test" ]
}
resource "azurerm_resource_group" "example" {
name = module.naming.main.resource_group.name
name = module.naming.resource_group.name
location = "West Europe"
}
```

if you want this to be unique for this module and not shared with other instances of this module you can use `name_unique`

```tf
module "naming" "main" {
module "naming" {
source = "Azure/naming/azurerm"
suffix = [ "test" ]
}
resource "azurerm_resource_group" "example" {
name = module.naming.main.resource_group.name
name = module.naming.resource_group.name
location = "West Europe"
}
```
Expand Down

0 comments on commit 3e60f79

Please sign in to comment.