-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CES-21] Refactoring resource groups in Core configuration (#1179)
- Loading branch information
Showing
19 changed files
with
238 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
data "azurerm_application_insights" "application_insights" { | ||
name = format("%s-ai-common", local.project) | ||
resource_group_name = azurerm_resource_group.rg_common.name | ||
resource_group_name = data.azurerm_resource_group.rg_common.name | ||
} | ||
|
||
data "azurerm_monitor_action_group" "error_action_group" { | ||
name = "${var.prefix}${var.env_short}error" | ||
resource_group_name = azurerm_resource_group.rg_common.name | ||
resource_group_name = data.azurerm_resource_group.rg_common.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { | ||
to = azurerm_resource_group.internal_weu | ||
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-internal" | ||
} | ||
|
||
import { | ||
to = azurerm_resource_group.external_weu | ||
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-external" | ||
} | ||
|
||
import { | ||
to = azurerm_resource_group.common_weu | ||
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common" | ||
} | ||
|
||
|
||
import { | ||
to = azurerm_resource_group.sec_weu | ||
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg" | ||
} | ||
|
||
removed { | ||
from = module.key_vault_weu.azurerm_resource_group.sec | ||
lifecycle { | ||
destroy = false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
resource "azurerm_resource_group" "common_itn" { | ||
name = "${local.project_itn}-common-rg-01" | ||
location = "italynorth" | ||
|
||
tags = local.tags | ||
} | ||
|
||
moved { | ||
from = azurerm_resource_group.vnet | ||
to = azurerm_resource_group.common_itn | ||
} | ||
|
||
resource "azurerm_resource_group" "dashboards_itn" { | ||
name = "${local.project_itn}-common-dashboards-rg-01" | ||
location = "italynorth" | ||
|
||
tags = local.tags | ||
} | ||
|
||
# Important: do not create any resource inside this resource group | ||
resource "azurerm_resource_group" "role_assignment_itn" { | ||
name = "default-roleassignment-rg" | ||
location = "italynorth" | ||
|
||
tags = local.tags | ||
} | ||
|
||
resource "azurerm_resource_group" "github_managed_identity_itn" { | ||
name = "${local.project_itn}-github-id-rg-01" | ||
location = "italynorth" | ||
|
||
tags = local.tags | ||
} | ||
|
||
resource "azurerm_resource_group" "internal_weu" { | ||
name = format("%s-rg-internal", local.project_weu_legacy) | ||
location = "westeurope" | ||
|
||
tags = local.tags | ||
} | ||
|
||
resource "azurerm_resource_group" "external_weu" { | ||
name = format("%s-rg-external", local.project_weu_legacy) | ||
location = "westeurope" | ||
|
||
tags = local.tags | ||
} | ||
|
||
resource "azurerm_resource_group" "common_weu" { | ||
name = format("%s-rg-common", local.project_weu_legacy) | ||
location = "westeurope" | ||
|
||
tags = local.tags | ||
} | ||
|
||
resource "azurerm_resource_group" "sec_weu" { | ||
name = format("%s-sec-rg", local.project_weu_legacy) | ||
location = "westeurope" | ||
|
||
tags = local.tags | ||
} | ||
|
||
resource "azurerm_resource_group" "acr_weu" { | ||
name = format("%s-container-registry-rg", local.project_weu_legacy) | ||
location = "westeurope" | ||
|
||
tags = local.tags | ||
} | ||
|
||
moved { | ||
from = module.container_registry.azurerm_resource_group.container_registry | ||
to = azurerm_resource_group.acr_weu | ||
} | ||
|
||
resource "azurerm_resource_group" "assets_cdn_weu" { | ||
name = format("%s-assets-cdn-rg", local.project_weu_legacy) | ||
location = "westeurope" | ||
|
||
tags = local.tags | ||
} | ||
|
||
import { | ||
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-assets-cdn-rg" | ||
to = azurerm_resource_group.assets_cdn_weu | ||
} | ||
|
||
resource "azurerm_resource_group" "linux_weu" { | ||
name = "${local.project_weu_legacy}-rg-linux" | ||
location = "westeurope" | ||
|
||
tags = local.tags | ||
} | ||
|
||
import { | ||
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-linux" | ||
to = azurerm_resource_group.linux_weu | ||
} |
Oops, something went wrong.