Skip to content

Commit

Permalink
skip: update CI 233
Browse files Browse the repository at this point in the history
  • Loading branch information
vit-corp committed Sep 1, 2024
1 parent 231df85 commit c9ec83b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:
TF_CLI_ARGS: "-no-color"
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
RED: '\033[0;31m'
ACTIONS_REPO_BRANCH: "feature/make_vnet_notparralel"
ACTIONS_REPO_BRANCH: "main"


permissions:
Expand Down
17 changes: 12 additions & 5 deletions auto_policy_testing/red/vnet/application_gateway.tf
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
resource "azurerm_resource_group" "this" {
name = "${random_string.this.result}-vnet-rg-red"
location = "eastus"

tags = module.naming.default_tags
}

resource "azurerm_virtual_network" "this1" {
name = "${module.naming.resource_prefix.vnet}1"
address_space = ["10.0.0.0/16"]
location = "eastus"
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
resource_group_name = azurerm_resource_group.this.name

tags = module.naming.default_tags
}

resource "azurerm_subnet" "this1" {
name = "${module.naming.resource_prefix.subnet}1"
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.this1.name
address_prefixes = ["10.0.2.0/24"]
}

resource "azurerm_public_ip" "this" {
name = "${random_string.this.result}_pip_red"
location = "eastus"
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
resource_group_name = azurerm_resource_group.this.name
allocation_method = "Static"
sku = "Standard"

Expand All @@ -27,7 +34,7 @@ resource "azurerm_public_ip" "this" {
resource "azurerm_application_gateway" "this" {
name = "${random_string.this.result}_app_gateway_red"
location = "eastus"
resource_group_name = data.terraform_remote_state.common.outputs.resource_group
resource_group_name = azurerm_resource_group.this.name

sku {
name = "WAF_v2"
Expand Down Expand Up @@ -71,7 +78,7 @@ resource "azurerm_application_gateway" "this" {

request_routing_rule {
name = "${random_string.this.result}_routrule_red"
priority = 9
priority = 10
rule_type = "Basic"
http_listener_name = "${random_string.this.result}_http_listener_red"
backend_address_pool_name = "${random_string.this.result}_back_adr_pool_red"
Expand Down

0 comments on commit c9ec83b

Please sign in to comment.