Skip to content

Commit

Permalink
Updated Terraform version in cicd executor, pinned aks module version…
Browse files Browse the repository at this point in the history
…, added terraform lock file in gitignore
  • Loading branch information
giulio-giunta committed May 6, 2024
1 parent 1b8116e commit 37e86ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ terraform/override.tf.json
terraform/*_override.tf
terraform/*_override.tf.json

# Ignore Terraform providers version file
.terraform.lock.hcl



3 changes: 2 additions & 1 deletion azure/terraform-azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 37e86ef

Please sign in to comment.