Skip to content

Commit

Permalink
identity
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Apr 23, 2024
1 parent 927c801 commit ff34138
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 281 deletions.
11 changes: 8 additions & 3 deletions .identity/00_data.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
data "azurerm_storage_account" "tf_storage_account"{
data "azurerm_storage_account" "tf_storage_account" {
name = "pagopainfraterraform${var.env}"
resource_group_name = "io-infra-rg"
}
Expand All @@ -17,14 +17,19 @@ data "github_organization_teams" "all" {
summary_only = true
}

data "azurerm_user_assigned_identity" "identity_cd_01" {
name = "${local.prefix}-${var.env_short}-${local.domain}-01-github-cd-identity"
resource_group_name = "${local.prefix}-${var.env_short}-identity-rg"
}

data "azurerm_key_vault" "key_vault" {
name = "pagopa-${var.env_short}-kv"
resource_group_name = "pagopa-${var.env_short}-sec-rg"
}

data "azurerm_key_vault" "domain_key_vault" {
name = "pagopa-${var.env_short}-${local.domain}-kv"
resource_group_name = "pagopa-${var.env_short}-${local.domain}-sec-rg"
name = "pagopa-${var.env_short}-itn-${local.domain}-kv"
resource_group_name = "pagopa-${var.env_short}-itn-${local.domain}-sec-rg"
}

data "azurerm_resource_group" "apim_resource_group" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "github_repository_environment" "github_repository_environment" {

locals {
env_secrets = {
"CLIENT_ID" : module.github_runner_app.application_id,
"CLIENT_ID" : data.azurerm_user_assigned_identity.identity_cd_01.client_id,
"TENANT_ID" : data.azurerm_client_config.current.tenant_id,
"SUBSCRIPTION_ID" : data.azurerm_subscription.current.subscription_id,
"SUBKEY" : data.azurerm_key_vault_secret.key_vault_integration_test_subkey.value,
Expand Down
96 changes: 0 additions & 96 deletions .identity/02_application_action.tf

This file was deleted.

Loading

0 comments on commit ff34138

Please sign in to comment.