-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AZ-1088-rework-module' into 'master'
feat(AZ-1088)!: rework module Closes AZ-1088 See merge request claranet/projects/cloud/azure/terraform/modules/waf-policy!65
- Loading branch information
Showing
19 changed files
with
203 additions
and
283 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
variables: | ||
TF_MIN_VERSION: "1.3" | ||
AZURERM_PROVIDER_MIN_VERSION: "3.80" | ||
TF_MIN_VERSION: "1.8" | ||
AZURERM_PROVIDER_MIN_VERSION: "4.0" | ||
|
||
include: | ||
- project: 'claranet/projects/cloud/azure/terraform/ci' | ||
- project: "claranet/projects/cloud/azure/terraform/ci" | ||
ref: master | ||
file: '/pipeline.yml' | ||
file: "/pipeline.yml" | ||
... |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module "azure_region" { | ||
source = "claranet/regions/azurerm" | ||
version = "x.x.x" | ||
|
||
azure_region = var.azure_region | ||
} | ||
|
||
module "rg" { | ||
source = "claranet/rg/azurerm" | ||
version = "x.x.x" | ||
|
||
location = module.azure_region.location | ||
location_short = module.azure_region.location_short | ||
client_name = var.client_name | ||
environment = var.environment | ||
stack = var.stack | ||
} |
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
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,14 +1,24 @@ | ||
output "waf_policy_id" { | ||
description = "Waf Policy ID" | ||
value = azurerm_web_application_firewall_policy.waf_policy.id | ||
output "id" { | ||
description = "WAF Policy ID." | ||
value = azurerm_web_application_firewall_policy.main.id | ||
} | ||
|
||
output "name" { | ||
description = "WAF Policy name." | ||
value = azurerm_web_application_firewall_policy.main.name | ||
} | ||
|
||
output "resource" { | ||
description = "WAF Policy resource object." | ||
value = azurerm_web_application_firewall_policy.main | ||
} | ||
|
||
output "http_listener_ids" { | ||
description = "A list of HTTP Listener IDs from an azurerm_application_gateway." | ||
value = azurerm_web_application_firewall_policy.waf_policy.http_listener_ids | ||
value = azurerm_web_application_firewall_policy.main.http_listener_ids | ||
} | ||
|
||
output "path_based_rule_ids" { | ||
description = "A list of URL Path Map Path Rule IDs from an azurerm_application_gateway." | ||
value = azurerm_web_application_firewall_policy.waf_policy.path_based_rule_ids | ||
value = azurerm_web_application_firewall_policy.main.path_based_rule_ids | ||
} |
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,12 @@ | ||
terraform { | ||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = "~> 4.0" | ||
} | ||
azurecaf = { | ||
source = "claranet/azurecaf" | ||
version = "~> 1.2.28" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.