Skip to content

Commit e7589bd

Browse files
authored
Merge pull request #150 from dannyshisler/ServiceEndpoint-fix
Service endpoint fix
2 parents 1c57a94 + 91720c6 commit e7589bd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/deploy/events/apiGateway/deployment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ module.exports = {
2727
[
2828
'https://',
2929
this.provider.getApiGatewayRestApiId(),
30-
`.execute-api.${this.options.region}.amazonaws.com/${this.options.stage}`,
30+
`.execute-api.${this.options.region}.`,
31+
{ Ref: 'AWS::URLSuffix' },
32+
`/${this.options.stage}`,
3133
],
3234
],
3335
},

lib/deploy/events/apiGateway/deployment.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ describe('#compileDeployment()', () => {
5959
[
6060
'https://',
6161
{ Ref: serverlessStepFunctions.apiGatewayRestApiLogicalId },
62-
'.execute-api.us-east-1.amazonaws.com/dev',
62+
'.execute-api.us-east-1.',
63+
{ Ref: 'AWS::URLSuffix' },
64+
'/dev',
6365
],
6466
],
6567
},

0 commit comments

Comments
 (0)