From bd6abb49da0b76250aec8207038a9970b9a088f4 Mon Sep 17 00:00:00 2001 From: Muhammad Date: Thu, 19 Dec 2024 10:32:37 +0000 Subject: [PATCH] Removal of the infrastructure folder --- infrastructure/.terraform-version | 1 - infrastructure/main.tf | 50 ------------------------------- infrastructure/variables.tf | 21 ------------- 3 files changed, 72 deletions(-) delete mode 100644 infrastructure/.terraform-version delete mode 100644 infrastructure/main.tf delete mode 100644 infrastructure/variables.tf diff --git a/infrastructure/.terraform-version b/infrastructure/.terraform-version deleted file mode 100644 index 70ad429e..00000000 --- a/infrastructure/.terraform-version +++ /dev/null @@ -1 +0,0 @@ -1.10.2 \ No newline at end of file diff --git a/infrastructure/main.tf b/infrastructure/main.tf deleted file mode 100644 index 6a3c37f6..00000000 --- a/infrastructure/main.tf +++ /dev/null @@ -1,50 +0,0 @@ -terraform { - backend "azurerm" {} - required_providers { - azurerm = { - source = "hashicorp/azurerm" - version = "~> 4.14.0" - } - } -} -provider "azurerm" { - features {} -} - -provider "azurerm" { - subscription_id = local.cft_vnet[local.env].subscription - skip_provider_registration = "true" - features {} - alias = "cft_vnet" -} - -locals { - default_name = "${var.product}-${var.component}" - vault_name = "${var.product}-${var.product}-${var.env}" - instance_count = (var.env == "prod" || var.env == "idam-prod" || var.env == "idam-prod2") ? 0 : 1 - env_temp = replace(var.env, "idam-", "") - env = local.env_temp == "sandbox" ? "sbox" : local.env_temp - cft_vnet = { - sbox = { - subscription = "b72ab7b7-723f-4b18-b6f6-03b0f2c6a1bb" - } - perftest = { - subscription = "8a07fdcd-6abd-48b3-ad88-ff737a4b9e3c" - } - aat = { - subscription = "96c274ce-846d-4e48-89a7-d528432298a7" - } - ithc = { - subscription = "62864d44-5da9-4ae9-89e7-0cf33942fa09" - } - preview = { - subscription = "8b6ea922-0862-443e-af15-6056e1c9b9a4" - } - demo = { - subscription = "d025fece-ce99-4df2-b7a9-b649d3ff2060" - } - prod = { - subscription = "8cbc6f36-7c56-4963-9d36-739db5d00b27" - } - } -} diff --git a/infrastructure/variables.tf b/infrastructure/variables.tf deleted file mode 100644 index d0510d35..00000000 --- a/infrastructure/variables.tf +++ /dev/null @@ -1,21 +0,0 @@ -variable "product" {} - -variable "component" {} - -variable "location" { - default = "UK South" -} - -variable "env" {} - -variable "subscription" {} - -variable "common_tags" { - type = map(string) -} - -variable "subscription_id" {} - -variable "jenkins_AAD_objectId" { - description = "(Required) The Azure AD object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies." -} \ No newline at end of file