-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* issue #36: created DNS zone for inspection.alpha.canada.ca * issue #36: removed unused variables * issue #36: fixed terraform linting errors * issue #36: renamed versions.tf to providers.tf * issue #36: renamed versions.tf to providers.tf for every modules * issue #36: renamed wronf file * issue #36: added A records for the DNS zone * issue #36: deployed ingress nginx on the AKS cluster + folder structure * issue #36: fixed yaml linting errors * issue #36: fixed linting yaml error * issue #36: fixed linting yaml error * issue #36: fixed linting yaml error * issue #36: added tags for azurerm_dns_a_record
- Loading branch information
1 parent
8bbc10f
commit 2e49407
Showing
26 changed files
with
737 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,20 @@ | ||
resource "azurerm_dns_zone" "dns_zone" { | ||
name = var.dns_zone_name | ||
resource_group_name = var.rg_name | ||
|
||
soa_record { | ||
email = var.soa_record_tech_contact_email | ||
} | ||
|
||
tags = var.tags | ||
} | ||
|
||
resource "azurerm_dns_a_record" "dns_zone_a_record" { | ||
name = var.dns_a_record_name | ||
zone_name = azurerm_dns_zone.dns_zone.name | ||
resource_group_name = var.rg_name | ||
ttl = 300 | ||
records = var.dns_a_records | ||
|
||
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,11 @@ | ||
terraform { | ||
|
||
required_version = ">= 1.7.2" | ||
|
||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = "~> 3.25" | ||
} | ||
} | ||
} |
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,29 @@ | ||
variable "rg_name" { | ||
description = "Name of the resource group" | ||
type = string | ||
} | ||
|
||
variable "dns_zone_name" { | ||
description = "azurerm_dns_zone name" | ||
type = string | ||
} | ||
|
||
variable "tags" { | ||
description = "(Optional) A mapping of tags to assign to the resource." | ||
type = map(string) | ||
} | ||
|
||
variable "soa_record_tech_contact_email" { | ||
description = "SOA Record tech contact email" | ||
type = string | ||
} | ||
|
||
variable "dns_a_record_name" { | ||
description = "DNS A Record name" | ||
type = string | ||
} | ||
|
||
variable "dns_a_records" { | ||
description = "DNS A records list" | ||
type = list(string) | ||
} |
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