Skip to content

Commit

Permalink
fix route53 hosted zone setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Learnspree committed Apr 13, 2020
1 parent 7415a26 commit 2ca91f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spf-api/spf-build-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ echo "***** SPF API ($environment): running sls deploy stage *****"

cd $DIR

# do the deploy
serverless deploy -v --stage $environment --domain $apicustomdomainname --acmcertarn $acmcertarn
# do the deploy (assuming the api domain is something like 'api.example.com')
# by default hosted zone will be 'example.com.' - note trailing .
domain="$(cut -d'.' -f3 <<<"$apicustomdomainname")"
subdomain="$(cut -d'.' -f2 <<<"$apicustomdomainname")"
serverless deploy -v --stage $environment --domain $apicustomdomainname --acmcertarn $acmcertarn --hostedzone $subdomain.$domain.

echo "***** SPF API ($environment): finished sls deploy stage *****"

0 comments on commit 2ca91f3

Please sign in to comment.