Skip to content

Commit

Permalink
Merge pull request #52 from silinternational/develop
Browse files Browse the repository at this point in the history
Pre-release 2.0.0-pre3 - Use calculate API stage as serverless_stage as well
  • Loading branch information
forevermatt authored Jun 29, 2023
2 parents 6dcb3f8 + c46d33e commit 3c4e265
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
stage_for_api_name = var.app_env == "dev" ? var.app_env : var.app_environment
api_name = "${var.app_name}-${local.stage_for_api_name}"
stage_for_api = var.app_env == "dev" ? var.app_env : var.app_environment
api_name = "${var.app_name}-${local.stage_for_api}"
}

/*
Expand All @@ -24,7 +24,7 @@ module "dns_for_failover" {

api_name = local.api_name
cloudflare_zone_name = var.cloudflare_domain
serverless_stage = var.app_env
serverless_stage = local.stage_for_api
subdomain = var.app_name

providers = {
Expand Down

0 comments on commit 3c4e265

Please sign in to comment.