Skip to content

Commit

Permalink
Add possibiloity to customize custom domain record value
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Aug 29, 2024
1 parent 09b87b1 commit 2a1ee80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lb-domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ locals {
]

custom_domain_dns_record = {
name = "custom-loadbalancer"
name = var.custom_domain_record_value
type = "CNAME"
ttl = 300
records = [
Expand Down
6 changes: 6 additions & 0 deletions lb-domain/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ variable "create_custom_domain_record" {
default = false
}

variable "custom_domain_record_value" {
type = string
description = "The value of the custom domain record"
default = "custom-loadbalancer"
}

variable "tags" {
type = map(string)
description = "A map of tags to add to all resources"
Expand Down

0 comments on commit 2a1ee80

Please sign in to comment.