From 69ddda57f01dd7896f7a27884854168c44a7cca4 Mon Sep 17 00:00:00 2001 From: kumarvna <36370570+kumarvna@users.noreply.github.com> Date: Mon, 25 Oct 2021 02:51:22 +0530 Subject: [PATCH 1/2] updating examples and documentation --- examples/README.md | 25 +++++++++++++++++++ .../application_gateway_with_ssl/README.md | 2 +- .../application_gateway_with_waf/README.md | 2 +- .../simple_http_application_gateway/README.md | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 examples/README.md diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..dfe39ba --- /dev/null +++ b/examples/README.md @@ -0,0 +1,25 @@ +# Azure Application Gateway Terraform Module + +Azure Application Gateway provides HTTP based load balancing that enables in creating routing rules for traffic based on HTTP. Traditional load balancers operate at the transport level and then route the traffic using source IP address and port to deliver data to a destination IP and port. Application Gateway using additional attributes such as URI (Uniform Resource Identifier) path and host headers to route the traffic. + +Classic load balances operate at OSI layer 4 - TCP and UDP, while Application Gateway operates at application layer OSI layer 7 for load balancing. + +This terraform module quickly creates a desired application gateway with additional options like WAF, Custom Error Configuration, SSL offloading with SSL policies, URL path mapping and many other options. + +## Module Usage for + +* [Application Gateway with SSL](application_gateway_with_ssl/) +* [Application Gateway with WAF](application_gateway_with_waf/) +* [A Simple HTTP Application Gateway](simple_http_application_gateway/) + +## Terraform Usage + +To run this example you need to execute following Terraform commands + +```hcl +terraform init +terraform plan +terraform apply +``` + +Run `terraform destroy` when you don't need these resources. diff --git a/examples/application_gateway_with_ssl/README.md b/examples/application_gateway_with_ssl/README.md index 7d4bf79..705419d 100644 --- a/examples/application_gateway_with_ssl/README.md +++ b/examples/application_gateway_with_ssl/README.md @@ -6,7 +6,7 @@ Classic load balances operate at OSI layer 4 - TCP and UDP, while Application Ga This terraform module quickly creates a desired application gateway with additional options like WAF, Custom Error Configuration, SSL offloading with SSL policies, URL path mapping and many other options. -## Module Usage +## Module Usage to create an Application Gateway with SSL ```hcl # Azurerm Provider configuration diff --git a/examples/application_gateway_with_waf/README.md b/examples/application_gateway_with_waf/README.md index ba63627..eb1812e 100644 --- a/examples/application_gateway_with_waf/README.md +++ b/examples/application_gateway_with_waf/README.md @@ -6,7 +6,7 @@ Classic load balances operate at OSI layer 4 - TCP and UDP, while Application Ga This terraform module quickly creates a desired application gateway with additional options like WAF, Custom Error Configuration, SSL offloading with SSL policies, URL path mapping and many other options. -## Module Usage +## Module Usage to create an Application Gateway with WAF ```hcl # Azurerm Provider configuration diff --git a/examples/simple_http_application_gateway/README.md b/examples/simple_http_application_gateway/README.md index 7a48a90..a492045 100644 --- a/examples/simple_http_application_gateway/README.md +++ b/examples/simple_http_application_gateway/README.md @@ -6,7 +6,7 @@ Classic load balances operate at OSI layer 4 - TCP and UDP, while Application Ga This terraform module quickly creates a desired application gateway with additional options like WAF, Custom Error Configuration, SSL offloading with SSL policies, URL path mapping and many other options. -## Module Usage for simple http applicaton gateway +## Module Usage to create a simple http applicaton gateway ```hcl # Azurerm Provider configuration From 1d752dc1ed2f71f8a240c161b49a9e94132040a5 Mon Sep 17 00:00:00 2001 From: kumarvna <36370570+kumarvna@users.noreply.github.com> Date: Mon, 25 Oct 2021 02:54:06 +0530 Subject: [PATCH 2/2] examples update for application gateway with WAF --- examples/application_gateway_with_waf/README.md | 4 ++-- examples/application_gateway_with_waf/main.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/application_gateway_with_waf/README.md b/examples/application_gateway_with_waf/README.md index eb1812e..4ede22c 100644 --- a/examples/application_gateway_with_waf/README.md +++ b/examples/application_gateway_with_waf/README.md @@ -36,8 +36,8 @@ module "application-gateway" { # SKU requires `name`, `tier` to use for this Application Gateway # `Capacity` property is optional if `autoscale_configuration` is set sku = { - name = "Standard_v2" - tier = "Standard_v2" + name = "WAF_v2" + tier = "WAF_v2" } autoscale_configuration = { diff --git a/examples/application_gateway_with_waf/main.tf b/examples/application_gateway_with_waf/main.tf index 293ce71..bc4b07d 100644 --- a/examples/application_gateway_with_waf/main.tf +++ b/examples/application_gateway_with_waf/main.tf @@ -25,8 +25,8 @@ module "application-gateway" { # SKU requires `name`, `tier` to use for this Application Gateway # `Capacity` property is optional if `autoscale_configuration` is set sku = { - name = "Standard_v2" - tier = "Standard_v2" + name = "WAF_v2" + tier = "WAF_v2" } autoscale_configuration = {