Skip to content

Commit

Permalink
fix : tflint error for output.tf anf variable.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavcloud committed Sep 17, 2024
1 parent bc75b7a commit 5298cc2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
output "firewall_id" {
description = "Firewall generated id"
value = join("", azurerm_firewall.firewall.*.id)
value = azurerm_firewall.firewall[0].id
}

output "firewall_name" {
Expand Down
45 changes: 38 additions & 7 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ variable "tags" {

variable "public_ip_allocation_method" {
description = "Defines the allocation method for this IP address. Possible values are Static or Dynamic"
type = string
default = "Static"
}

variable "public_ip_sku" {
description = "The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic"
type = string
default = "Standard"
}

Expand Down Expand Up @@ -128,18 +130,46 @@ variable "additional_public_ips" {
}

variable "application_rule_collection" {
default = {}
description = "One or more application_rule_collection blocks as defined below.."
description = "One or more application_rule_collection blocks."
type = list(object({
name = string
rules = list(object({
name = string
action = string
protocol = string
ports = list(string)
}))
}))
default = []
}


variable "network_rule_collection" {
default = {}
description = "One or more network_rule_collection blocks as defined below."
description = "One or more network_rule_collection blocks."
type = list(object({
name = string
rules = list(object({
name = string
action = string
protocol = string
ports = list(string)
}))
}))
default = []
}

variable "nat_rule_collection" {
default = {}
description = "One or more nat_rule_collection blocks as defined below."
description = "One or more nat_rule_collection blocks."
type = list(object({
name = string
rules = list(object({
name = string
action = string
protocol = string
ports = list(string)
}))
}))
default = []
}

variable "public_ip_names" {
Expand Down Expand Up @@ -329,7 +359,8 @@ variable "retention_days" {
}

variable "log_category_group" {
description = "log category group for collecting matrics"
description = "log category group for collecting metrics"
type = string
default = "AllLogs"
}

0 comments on commit 5298cc2

Please sign in to comment.