Skip to content

Commit

Permalink
Issue #30: Fix terraform lint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Feb 7, 2024
1 parent e65df77 commit 5197970
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 24 deletions.
2 changes: 1 addition & 1 deletion terraform/modules/gcp-kubernetes-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "google_container_cluster" "cluster" {

# Optional, if you want multi-zonal cluster
node_locations = [
"${var.location_2}"
var.location_2
]

addons_config {
Expand Down
3 changes: 3 additions & 0 deletions terraform/modules/gcp-kubernetes-cluster/provider.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
terraform {

required_version = ">= 1.7.2"

required_providers {
local = {
source = "hashicorp/local"
Expand Down
38 changes: 19 additions & 19 deletions terraform/prod/main.tf
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# terraform {
terraform {

# required_version = ">= 1.1.0"
required_version = ">= 1.1.0"

# backend "azurerm" {
# resource_group_name = "rg-ai-cfia-terraform-state"
# storage_account_name = "tfcfiastate"
# container_name = "infra-terraform-state"
# key = "tf/terraform.tfstate"
# }
# backend "azurerm" {
# resource_group_name = "rg-ai-cfia-terraform-state"
# storage_account_name = "tfcfiastate"
# container_name = "infra-terraform-state"
# key = "tf/terraform.tfstate"
# }

# required_providers {
# azurerm = {
# source = "hashicorp/azurerm"
# version = "~> 3.25"
# }
# kubernetes = {
# source = "hashicorp/kubernetes"
# version = "2.24.0"
# }
# }
# }
# required_providers {
# azurerm = {
# source = "hashicorp/azurerm"
# version = "~> 3.25"
# }
# kubernetes = {
# source = "hashicorp/kubernetes"
# version = "2.24.0"
# }
# }
}

# provider "azurerm" {
# features {}
Expand Down
2 changes: 2 additions & 0 deletions terraform/staging/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
terraform {

required_version = ">= 1.7.2"

backend "azurerm" {
resource_group_name = "rg-ai-cfia-terraform-state"
storage_account_name = "tfcfiastate"
Expand Down
8 changes: 4 additions & 4 deletions terraform/staging/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "kube_ctx" {
description = "The kubernetes cluster context."
type = string
}
# variable "kube_ctx" {
# description = "The kubernetes cluster context."
# type = string
# }

0 comments on commit 5197970

Please sign in to comment.