Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominodatalab/terraform-azure-application-gateway
Terraform module that creates an application gateway with defaults
https://github.com/dominodatalab/terraform-azure-application-gateway
azure terraform
Last synced: 29 days ago
JSON representation
Terraform module that creates an application gateway with defaults
- Host: GitHub
- URL: https://github.com/dominodatalab/terraform-azure-application-gateway
- Owner: dominodatalab
- License: apache-2.0
- Created: 2019-03-28T15:53:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T21:51:52.000Z (about 2 years ago)
- Last Synced: 2024-04-21T00:15:39.109Z (8 months ago)
- Topics: azure, terraform
- Language: HCL
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 39
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Application Gateway Terraform module
Terraform module that creates an application gateway with the following features:
- Public endpoint with a static IP
- Listeners defined on ports 443/80
- Configurable health probe
- Generates a self-signed certificate inside a dedicate Key Vault## Usage
```hcl
module "my_appgw" {
source = "[email protected]:dominodatalab/terraform-azure-application-gateway.git"location = "westus2"
resource_group_name = "my-resource-group"
subnet_id = "my-subnet"# a password-protected ssl cert in pfx formwat is required
ssl_cert_pfx_data = data.external.cert.result["my-cert-data"]
ssl_cert_pfx_password = "mycertpassword"# you can target the NICs of your VMs to add them to the backend pool for
# this gateway. alternatively, you can pass "${module.my_appgw.backend_address_pool_id}"
# to a VMSS.
targets = ["${azurerm_network_interface.my_vms.*.name}"]# or you can provide one or more IP addresses to target, useful if you
# have reserved an ip address in terraform but won't have it setup as
# a target until later (ie given to a k8s loadbalancer):
backend_pool_ip_addresses = ["1.2.3.4"]
}
```