From 37e86ef53d37518b9e21f7d598ec5aa7d65d514b Mon Sep 17 00:00:00 2001 From: giulio-giunta <56529931+giulio-giunta@users.noreply.github.com> Date: Mon, 6 May 2024 10:33:37 +0100 Subject: [PATCH] Updated Terraform version in cicd executor, pinned aks module version, added terraform lock file in gitignore --- .circleci/config.yml | 4 ++-- .gitignore | 3 +++ azure/terraform-azure/main.tf | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 151f5b2..63f88d7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,8 +15,8 @@ jobs: - run: name: Install Terraform cli command: | - wget https://releases.hashicorp.com/terraform/1.4.2/terraform_1.4.2_linux_386.zip - unzip terraform_1.4.2_linux_386.zip + wget https://releases.hashicorp.com/terraform/1.8.2/terraform_1.8.2_linux_386.zip + unzip terraform_1.8.2_linux_386.zip sudo mv terraform /usr/local/bin - run: name: Terraform cycle diff --git a/.gitignore b/.gitignore index 77fce16..1978a81 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,8 @@ terraform/override.tf.json terraform/*_override.tf terraform/*_override.tf.json +# Ignore Terraform providers version file +.terraform.lock.hcl + diff --git a/azure/terraform-azure/main.tf b/azure/terraform-azure/main.tf index 8e80b1d..1b1d285 100644 --- a/azure/terraform-azure/main.tf +++ b/azure/terraform-azure/main.tf @@ -106,6 +106,7 @@ resource "azurerm_subnet" "endpoint" { module "aks" { source = "Azure/aks/azurerm" + version = "7.4.0" resource_group_name = azurerm_resource_group.geekzone.name client_id = var.ARM_CLIENT_ID client_secret = var.ARM_CLIENT_SECRET @@ -120,7 +121,7 @@ module "aks" { role_based_access_control_enabled = false rbac_aad = false rbac_aad_managed = false - private_cluster_enabled = false # default value + private_cluster_enabled = false http_application_routing_enabled = false azure_policy_enabled = true public_network_access_enabled = false