diff --git a/terraform/main.tf b/terraform/main.tf index cb3adb8..3e45f8f 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -20,7 +20,8 @@ module "serverless-user" { // Set up custom domain name for easier fail-over. module "dns_for_failover" { - source = "github.com/silinternational/terraform-aws-serverless-api-dns-for-failover?ref=0.3.0" + source = "silinternational/serverless-api-dns-for-failover/aws" + version = "~>0.5.1" api_name = local.api_name cloudflare_zone_name = var.cloudflare_domain diff --git a/terraform/outputs.tf b/terraform/outputs.tf index 30fe011..db863d8 100644 --- a/terraform/outputs.tf +++ b/terraform/outputs.tf @@ -6,3 +6,11 @@ output "serverless_user_key_secret" { output "lambda_role_arn" { value = aws_iam_role.lambdaRole.arn } + +output "primary_region_domain_name" { + value = module.dns_for_failover.primary_region_domain_name +} + +output "secondary_region_domain_name" { + value = module.dns_for_failover.secondary_region_domain_name +}