Skip to content

Commit

Permalink
Apply Terraform Lint Check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Mendes Pereira committed Oct 17, 2024
1 parent ea60f34 commit 6ac3037
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 37 deletions.
6 changes: 0 additions & 6 deletions modules/terraform/aws/eks/addon/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ variable "cluster_oidc_provider_url" {
type = string
}

variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}

variable "eks_addon_config_map" {
description = "A map of EKS addons to deploy"
type = map(object({
Expand Down
24 changes: 0 additions & 24 deletions modules/terraform/aws/karpenter/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,3 @@ variable "json_input" {
region = string
})
}

variable "owner" {
description = "Owner of the scenario"
type = string
default = "azure_devops"
}

variable "scenario_name" {
description = "Name of the scenario"
type = string
default = ""
}

variable "scenario_type" {
description = "value of the scenario type"
type = string
default = ""
}

variable "deletion_delay" {
description = "Time duration after which the resources can be deleted (e.g., '1h', '2h', '4h')"
type = string
default = "2h"
}
3 changes: 1 addition & 2 deletions modules/terraform/aws/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
region = lookup(var.json_input, "region", "us-east-1")
run_id = lookup(var.json_input, "run_id", "123456")
current_time = lookup(var.json_input, "current_time")
current_time = var.json_input["current_time"]

non_computed_tags = {
# Note: Define only non computed values (i.e. values that do not change for each resource). This is required due to a limitation at "aws" provider default_tags.
Expand Down Expand Up @@ -45,7 +45,6 @@ module "virtual_network" {
source = "./virtual-network"
network_config = each.value
region = local.region
tags = local.tags
}

module "eks" {
Expand Down
5 changes: 0 additions & 5 deletions modules/terraform/aws/virtual-network/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ variable "region" {
type = string
}

variable "tags" {
type = map(string)
default = {
}
}

0 comments on commit 6ac3037

Please sign in to comment.