Skip to content

Commit

Permalink
skip: update CI 273
Browse files Browse the repository at this point in the history
  • Loading branch information
vit-corp committed Sep 25, 2024
1 parent 28eede7 commit e351059
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 28 deletions.
4 changes: 2 additions & 2 deletions auto_policy_testing/green/data/data_factory.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurerm_data_factory" "this" {
name = module.naming.resource_prefix.datafactory
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

github_configuration {
account_name = "alyonaserdiuk"
Expand Down
4 changes: 2 additions & 2 deletions auto_policy_testing/green/data/databricks_workspace.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurerm_databricks_workspace" "this" {
name = module.naming.resource_prefix.databricksws
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name
sku = "standard"

custom_parameters {
Expand Down
4 changes: 2 additions & 2 deletions auto_policy_testing/green/data/keyvault.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
data "azurerm_client_config" "current" {}

resource "azurerm_user_assigned_identity" "this" {
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

name = module.naming.resource_prefix.useridentity
}
Expand Down
16 changes: 8 additions & 8 deletions auto_policy_testing/green/data/network.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
resource "azurerm_virtual_network" "this" {
name = module.naming.resource_prefix.vnet
address_space = ["10.0.0.0/16"]
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

tags = module.naming.default_tags
}
resource "azurerm_subnet" "this" {
name = module.naming.resource_prefix.subnet
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
resource_group_name = azurerm_resource_group.this.name
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = ["10.0.2.0/24"]
delegation {
Expand All @@ -32,8 +32,8 @@ resource "azurerm_subnet" "this" {

resource "azurerm_network_security_group" "this" {
name = module.naming.resource_prefix.networksecuritygroup
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

security_rule {
name = "deny_inbound_udp"
Expand Down Expand Up @@ -71,7 +71,7 @@ resource "azurerm_subnet_network_security_group_association" "this" {

resource "azurerm_subnet" "this1" {
name = "${module.naming.resource_prefix.subnet}-data"
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
resource_group_name = azurerm_resource_group.this.name
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = ["10.0.3.0/24"]

Expand All @@ -96,8 +96,8 @@ resource "azurerm_subnet" "this1" {

resource "azurerm_network_security_group" "this1" {
name = "${module.naming.resource_prefix.networksecuritygroup}-data"
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

security_rule {
name = "deny_inbound_udp"
Expand Down
6 changes: 5 additions & 1 deletion auto_policy_testing/green/data/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ terraform {
}

provider "azurerm" {
features {}
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}

6 changes: 6 additions & 0 deletions auto_policy_testing/green/data/resource_group.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "azurerm_resource_group" "this" {
name = module.naming.resource_prefix.resourcegroup
location = "northeurope"

tags = module.naming.default_tags
}
4 changes: 2 additions & 2 deletions auto_policy_testing/red/data/data_factory.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ data "azurerm_client_config" "current" {}

resource "azurerm_data_factory" "this" {
name = module.naming.resource_prefix.datafactory
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

tags = module.naming.default_tags
}
Expand Down
4 changes: 2 additions & 2 deletions auto_policy_testing/red/data/databricks_workspace.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurerm_databricks_workspace" "this" {
name = module.naming.resource_prefix.databricksws
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name
sku = "standard"

custom_parameters {
Expand Down
16 changes: 8 additions & 8 deletions auto_policy_testing/red/data/network.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
resource "azurerm_virtual_network" "this" {
name = module.naming.resource_prefix.vnet
address_space = ["10.0.0.0/16"]
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

tags = module.naming.default_tags
}
resource "azurerm_subnet" "this" {
name = module.naming.resource_prefix.subnet
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
resource_group_name = azurerm_resource_group.this.name
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = ["10.0.2.0/24"]

Expand All @@ -33,8 +33,8 @@ resource "azurerm_subnet" "this" {

resource "azurerm_network_security_group" "this" {
name = module.naming.resource_prefix.networksecuritygroup
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

security_rule {
name = "deny_inbound_udp"
Expand Down Expand Up @@ -72,7 +72,7 @@ resource "azurerm_subnet_network_security_group_association" "this" {

resource "azurerm_subnet" "this1" {
name = "${module.naming.resource_prefix.subnet}-data"
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
resource_group_name = azurerm_resource_group.this.name
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = ["10.0.3.0/24"]

Expand All @@ -97,8 +97,8 @@ resource "azurerm_subnet" "this1" {

resource "azurerm_network_security_group" "this1" {
name = "${module.naming.resource_prefix.networksecuritygroup}-data"
location = data.terraform_remote_state.common.outputs.location
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
location = "northeurope"
resource_group_name = azurerm_resource_group.this.name

security_rule {
name = "deny_inbound_udp"
Expand Down
6 changes: 5 additions & 1 deletion auto_policy_testing/red/data/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ terraform {
}

provider "azurerm" {
features {}
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}

6 changes: 6 additions & 0 deletions auto_policy_testing/red/data/resource_group.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "azurerm_resource_group" "this" {
name = module.naming.resource_prefix.resourcegroup
location = "northeurope"

tags = module.naming.default_tags
}

0 comments on commit e351059

Please sign in to comment.