Skip to content

Commit

Permalink
Merge pull request #4990 from hmcts/DTSCCI-1136-terraform-version-upg…
Browse files Browse the repository at this point in the history
…rade

DTSCCI-1136 upgrade terraform version inline with min version
  • Loading branch information
rishikrsharma authored Feb 3, 2025
2 parents 8ffa1c8 + f44ab0a commit 09f17f6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion infrastructure/.terraform-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.3
1.10.5
34 changes: 22 additions & 12 deletions infrastructure/_state.tf
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
provider "azurerm" {
features {}
}

provider "azurerm" {
features {}
resource_provider_registrations = "none"
alias = "private_endpoint"
subscription_id = var.aks_subscription_id
}

terraform {
required_version = ">= 0.15" # Terraform client version

backend "azurerm" {}

required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.112.0"
azuread = {
source = "hashicorp/azuread"
version = "3.1.0"
}

random = {
source = "hashicorp/random"
source = "hashicorp/random"
}
azuread = {
source = "hashicorp/azuread"
version = "2.53.1"

azurerm = {
source = "hashicorp/azurerm"
version = "~> 4.16.0"
}
}
}

provider "azurerm" {
features {}
skip_provider_registration = "true"
}
4 changes: 3 additions & 1 deletion infrastructure/_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ variable "sku_name" {
variable "capacity" {
default = "1"
description = "The size of the Redis cache to deploy. Valid values are 1, 2, 3, 4, 5"
}
}

variable "aks_subscription_id" {}
2 changes: 1 addition & 1 deletion infrastructure/app-insights.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "application_insights" {
source = "[email protected]:hmcts/terraform-module-application-insights?ref=main"
source = "[email protected]:hmcts/terraform-module-application-insights?ref=4.x"

env = var.env
product = var.product
Expand Down

0 comments on commit 09f17f6

Please sign in to comment.