Skip to content

Commit

Permalink
Merge pull request serverless-operations#216 from horike37/feature/fi…
Browse files Browse the repository at this point in the history
…x_service_endpoint

fix: fix incorrect ServiceEndpoint
  • Loading branch information
theburningmonk committed Jun 11, 2019
2 parents 313d945 + a3c6228 commit 5e9ac6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/deploy/events/apiGateway/deployment.js
Expand Up @@ -27,9 +27,11 @@ module.exports = {
[
'https://',
this.provider.getApiGatewayRestApiId(),
`.execute-api.${this.options.region}.`,
'.execute-api.',
{ Ref: 'AWS::Region' },
'.',
{ Ref: 'AWS::URLSuffix' },
`/${this.options.stage}`,
`/${this.provider.getStage()}`,
],
],
},
Expand Down
4 changes: 3 additions & 1 deletion lib/deploy/events/apiGateway/deployment.test.js
Expand Up @@ -59,7 +59,9 @@ describe('#compileDeployment()', () => {
[
'https://',
{ Ref: serverlessStepFunctions.apiGatewayRestApiLogicalId },
'.execute-api.us-east-1.',
'.execute-api.',
{ Ref: 'AWS::Region' },
'.',
{ Ref: 'AWS::URLSuffix' },
'/dev',
],
Expand Down

0 comments on commit 5e9ac6c

Please sign in to comment.