From a65cf87608dbaf12d8afa6d4bdae9abc318d4400 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 16 Jan 2024 10:25:47 +0100 Subject: [PATCH] fix --- .identity/99_variables.tf | 19 +----------------- .identity/env/dev/terraform.tfvars | 31 ------------------------------ .identity/env/uat/terraform.tfvars | 27 -------------------------- 3 files changed, 1 insertion(+), 76 deletions(-) diff --git a/.identity/99_variables.tf b/.identity/99_variables.tf index f485003a..c0b7a3d4 100644 --- a/.identity/99_variables.tf +++ b/.identity/99_variables.tf @@ -45,23 +45,6 @@ variable "prefix" { } } -variable "cd_github_federations" { - type = list(object({ - repository = string - credentials_scope = optional(string, "environment") - subject = string - })) - description = "GitHub Organization, repository name and scope permissions" -} - -variable "environment_cd_roles" { - type = object({ - subscription = list(string) - resource_groups = map(list(string)) - }) - description = "GitHub Continous Delivery roles" -} - variable "github_repository_environment" { type = object({ protected_branches = bool @@ -82,7 +65,7 @@ variable "tags" { CreatedBy = "Terraform" Environment = "PROD" Owner = "pagoPA" - Source = "https://github.com/pagopa/pagopa-gpd-upload" + Source = "https://github.com/pagopa/pagopa-stand-in-manager" CostCenter = "TS310 - PAGAMENTI & SERVIZI" } } \ No newline at end of file diff --git a/.identity/env/dev/terraform.tfvars b/.identity/env/dev/terraform.tfvars index fe6df919..71a51bc3 100644 --- a/.identity/env/dev/terraform.tfvars +++ b/.identity/env/dev/terraform.tfvars @@ -9,35 +9,4 @@ tags = { Owner = "pagoPA" Source = "https://github.com/pagopa/pagopa-stand-in-manager" CostCenter = "TS310 - PAGAMENTI & SERVIZI" -} - -cd_github_federations = [ - { - repository = "pagopa-stand-in-manager" - subject = "dev" - } -] - -environment_cd_roles = { -# subscription = [ -# "Contributor", -# "Storage Account Contributor", -# "Storage Blob Data Contributor", -# "Storage File Data SMB Share Contributor", -# "Storage Queue Data Contributor", -# "Storage Table Data Contributor", -# "Key Vault Contributor" -# ] - subscription = [ - "Contributor", - "Key Vault Reader" - ] - resource_groups = { - "pagopa-d-nodo-sec-rg" = [ - "Key Vault Reader" - ], - "pagopa-d-weu-dev-aks-rg" = [ - "Contributor" - ] - } } \ No newline at end of file diff --git a/.identity/env/uat/terraform.tfvars b/.identity/env/uat/terraform.tfvars index d2143353..9998c56d 100644 --- a/.identity/env/uat/terraform.tfvars +++ b/.identity/env/uat/terraform.tfvars @@ -10,30 +10,3 @@ tags = { Source = "https://github.com/pagopa/pagopa-stand-in-manager" CostCenter = "TS310 - PAGAMENTI & SERVIZI" } - -cd_github_federations = [ - { - repository = "pagopa-stand-in-manager" - subject = "uat" - } -] - -environment_cd_roles = { - subscription = [ - "Contributor", - "Storage Account Contributor", - "Storage Blob Data Contributor", - "Storage File Data SMB Share Contributor", - "Storage Queue Data Contributor", - "Storage Table Data Contributor", - "Key Vault Contributor" - ] - resource_groups = { - "pagopa-u-nodo-sec-rg" = [ - "Key Vault Contributor" - ], - "pagopa-u-weu-uat-aks-rg" = [ - "Contributor" - ] - } -} \ No newline at end of file