Skip to content

Commit

Permalink
use naming module suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
artemious7 committed Oct 13, 2024
1 parent 972b092 commit 8bce7df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {

# Resource group
resource "azurerm_resource_group" "default" {
name = "timeTrackerBot-${module.naming.resource_group.name_unique}"
name = module.naming.resource_group.name_unique
location = var.location
tags = local.tags
}
Expand All @@ -17,7 +17,7 @@ module "function_app" {
source = "git::https://github.com/Azure/terraform-azurerm-avm-res-web-site.git?ref=b8d63f47fc2cbfa21aa362d39a08ea38a9b31d36" # commit hash of version 0.9.1
location = var.location
resource_group_name = azurerm_resource_group.default.name
name = "${module.naming.function_app.name_unique}-default"
name = module.naming.function_app.name_unique
kind = "functionapp"
os_type = "Windows"
enable_telemetry = true
Expand Down
1 change: 1 addition & 0 deletions infra/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ provider "azurerm" {
# This ensures we have unique CAF compliant names for our resources.
module "naming" {
source = "git::https://github.com/Azure/terraform-azurerm-naming.git?ref=9aaa2b0f58383501a4025a4696e4225504ffa9c3" # version 0.4.1
suffix = ["timeTrackerBot"]
}

0 comments on commit 8bce7df

Please sign in to comment.