Skip to content

Commit

Permalink
Merge pull request #8 from clouddrove/internal-416
Browse files Browse the repository at this point in the history
fix: default variable pass in variable.tf
  • Loading branch information
d4kverma authored May 23, 2023
2 parents 2eadca3 + e9228df commit 719cd0a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions _examples/AzMonitor-ActionGroups/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module "resource_group" {
source = "clouddrove/resource-group/azure"
version = "1.0.2"

name = "app-action"
name = "app"
environment = "test"
label_order = ["name", "environment"]
location = "Canada Central"
Expand All @@ -17,7 +17,6 @@ module "azmonitor-action-groups" {
source = "./../.."
name = "app"
environment = "test"
label_order = ["name", "environment"]

actionGroups = {
"group1" = {
Expand Down
4 changes: 1 addition & 3 deletions _examples/AzMonitor-ActivityLogAlerts/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "resource_group" {
source = "clouddrove/resource-group/azure"
version = "1.0.2"

name = "app-example"
name = "app"
environment = "test"
label_order = ["name", "environment"]
location = "Canada Central"
Expand All @@ -16,7 +16,6 @@ module "azmonitor-action-group" {
source = "./../../"
name = "app"
environment = "test"
label_order = ["name", "environment"]

actionGroups = {
"group1" = {
Expand Down Expand Up @@ -49,7 +48,6 @@ module "alerts" {

name = "app"
environment = "test"
label_order = ["name", "environment"]

activity_log_alert = {
"test1" = {
Expand Down
4 changes: 1 addition & 3 deletions _examples/AzMonitor-MetricAlerts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module "resource_group" {
source = "clouddrove/resource-group/azure"
version = "1.0.2"

name = "app1"
name = "app"
environment = "test"
label_order = ["name", "environment"]
location = "Canada Central"
Expand All @@ -18,7 +18,6 @@ module "azmonitor-action-groups" {
source = "./../../"
name = "app"
environment = "test"
label_order = ["name", "environment"]

actionGroups = {
"group1" = {
Expand Down Expand Up @@ -60,7 +59,6 @@ module "azmonitor-metric-alerts" {

name = "app"
environment = "test"
label_order = ["name", "environment"]

metricAlerts = {
"alert1" = {
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ variable "managedby" {

variable "label_order" {
type = list(any)
default = []
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
variable "repository" {
Expand Down Expand Up @@ -85,4 +85,4 @@ variable "activity_log_alert" {
}))

default = {}
}
}

0 comments on commit 719cd0a

Please sign in to comment.