Skip to content

Commit

Permalink
Create dns record if not serverless (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode committed Dec 10, 2021
1 parent 2c9b452 commit 6a13bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ module "dns_replicas" {
source = "cloudposse/route53-cluster-hostname/aws"
version = "0.12.2"

enabled = local.enabled && length(var.zone_id) > 0 && local.is_serverless && local.cluster_instance_count > 0
enabled = local.enabled && length(var.zone_id) > 0 && ! local.is_serverless && local.cluster_instance_count > 0
dns_name = local.reader_dns_name
zone_id = var.zone_id
records = coalescelist(aws_rds_cluster.primary.*.reader_endpoint, aws_rds_cluster.secondary.*.reader_endpoint, [""])
Expand Down

0 comments on commit 6a13bc9

Please sign in to comment.