Skip to content

Commit

Permalink
[EC-43] Remove other repos federation from io-infra managed identity (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 authored Jan 3, 2024
1 parent a2d7ec7 commit 6d26bd3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .identity/04_github_identity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ resource "azurerm_resource_group" "identity_rg" {
}

module "identity_ci" {
source = "github.com/pagopa/terraform-azurerm-v3//github_federated_identity?ref=v7.34.0"
source = "github.com/pagopa/terraform-azurerm-v3//github_federated_identity?ref=v7.35.0"

prefix = var.prefix
env_short = var.env_short
domain = var.domain

identity_role = "ci"

Expand All @@ -28,10 +29,11 @@ module "identity_ci" {
}

module "identity_cd" {
source = "github.com/pagopa/terraform-azurerm-v3//github_federated_identity?ref=v7.34.0"
source = "github.com/pagopa/terraform-azurerm-v3//github_federated_identity?ref=v7.35.0"

prefix = var.prefix
env_short = var.env_short
domain = var.domain

identity_role = "cd"

Expand Down
5 changes: 5 additions & 0 deletions .identity/99_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ variable "prefix" {
}
}

variable "domain" {
type = string
description = "Managed identities scope names"
}

variable "location" {
type = string
description = "One of westeurope, northeurope"
Expand Down
17 changes: 1 addition & 16 deletions .identity/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ prefix = "io"
env_short = "p"
env = "prod"
location = "westeurope"
domain = "infra"

github_repository_environment_ci = {
protected_branches = false
Expand All @@ -22,29 +23,13 @@ ci_github_federations = [
{
repository = "io-infra"
subject = "prod-ci"
},
{
repository = "io-sign" # TODO: move. https://github.com/pagopa/io-infra/pull/745#discussion_r1410721348
subject = "prod-ci"
},
{
repository = "io-services-metadata"
subject = "prod-ci"
}
]

cd_github_federations = [
{
repository = "io-infra"
subject = "prod-ci"
},
{
repository = "io-sign" # TODO: move. https://github.com/pagopa/io-infra/pull/745#discussion_r1410721348
subject = "prod-ci"
},
{
repository = "io-services-metadata"
subject = "prod-cd"
}
]

Expand Down

0 comments on commit 6d26bd3

Please sign in to comment.