-
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 pull request #7 from Ontotext-AD/TES-307-AppGateway
TES-307: Application Gateway
- Loading branch information
Showing
34 changed files
with
592 additions
and
229 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 @@ | ||
# GraphDB Public IP Address Module |
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,31 @@ | ||
data "azurerm_resource_group" "graphdb" { | ||
name = var.resource_group_name | ||
} | ||
|
||
locals { | ||
resource_group = data.azurerm_resource_group.graphdb.name | ||
location = data.azurerm_resource_group.graphdb.location | ||
} | ||
|
||
resource "random_string" "fqdn" { | ||
length = 6 | ||
special = false | ||
upper = false | ||
numeric = true | ||
} | ||
|
||
resource "azurerm_public_ip" "graphdb-public-ip-address" { | ||
name = "${var.resource_name_prefix}-public-address" | ||
resource_group_name = local.resource_group | ||
location = local.location | ||
|
||
sku = "Standard" | ||
allocation_method = "Static" | ||
zones = var.zones | ||
|
||
# TODO: idle_timeout_in_minutes is between 4 and 30 minutes, gotta test if this affects our data loading | ||
|
||
domain_name_label = "${var.resource_name_prefix}-${random_string.fqdn.result}" | ||
|
||
tags = var.tags | ||
} |
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,9 @@ | ||
output "public_ip_address_name" { | ||
description = "Name of the public IP address" | ||
value = azurerm_public_ip.graphdb-public-ip-address.name | ||
} | ||
|
||
output "public_ip_address_fqdn" { | ||
description = "The assigned FQDN of the public IP address" | ||
value = azurerm_public_ip.graphdb-public-ip-address.fqdn | ||
} |
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,23 @@ | ||
# General configurations | ||
|
||
variable "resource_name_prefix" { | ||
description = "Resource name prefix used for tagging and naming AWS resources" | ||
type = string | ||
} | ||
|
||
variable "zones" { | ||
description = "Availability zones for the public IP address." | ||
type = list(number) | ||
default = [1, 2, 3] | ||
} | ||
|
||
variable "tags" { | ||
description = "Common resource tags." | ||
type = map(string) | ||
default = {} | ||
} | ||
|
||
variable "resource_group_name" { | ||
description = "Name of the resource group where GraphDB will be deployed." | ||
type = string | ||
} |
4 changes: 2 additions & 2 deletions
4
modules/load_balancer/versions.tf → modules/address/versions.tf
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,10 +1,10 @@ | ||
terraform { | ||
required_version = ">= 1.3.1" | ||
required_version = ">= 1.5.0" | ||
|
||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = ">=3.71.0" | ||
version = ">=3.80.0" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# GraphDB Application Gateway Module |
Oops, something went wrong.