File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class Apigw {
41
41
const {
42
42
serviceId,
43
43
protocols,
44
- netTypes = [ 'OUTER' ] ,
44
+ netTypes,
45
45
serviceName = 'Serverless_Framework' ,
46
46
serviceDesc = 'Created By Serverless Framework' ,
47
47
} = serviceConf ;
@@ -54,6 +54,7 @@ class Apigw {
54
54
ServiceId : serviceId ,
55
55
} ) ;
56
56
if ( detail ) {
57
+ detail . InnerSubDomain = detail . InternalSubDomain ;
57
58
exist = true ;
58
59
if (
59
60
! (
@@ -62,25 +63,31 @@ class Apigw {
62
63
protocols === detail . protocol
63
64
)
64
65
) {
65
- await this . request ( {
66
+ const apiInputs = {
66
67
Action : 'ModifyService' ,
67
68
serviceId,
68
69
serviceDesc : serviceDesc || detail . serviceDesc ,
69
70
serviceName : serviceName || detail . serviceName ,
70
71
protocol : protocols ,
71
- netTypes : netTypes ,
72
- } ) ;
72
+ } ;
73
+ if ( netTypes ) {
74
+ apiInputs . netTypes = netTypes ;
75
+ }
76
+ await this . request ( apiInputs ) ;
73
77
}
74
78
}
75
79
}
76
80
if ( ! exist ) {
77
- detail = await this . request ( {
81
+ const apiInputs = {
78
82
Action : 'CreateService' ,
79
83
serviceName : serviceName || 'Serverless_Framework' ,
80
84
serviceDesc : serviceDesc || 'Created By Serverless Framework' ,
81
85
protocol : protocols ,
82
- netTypes : netTypes ,
83
- } ) ;
86
+ } ;
87
+ if ( netTypes ) {
88
+ apiInputs . netTypes = netTypes ;
89
+ }
90
+ detail = await this . request ( apiInputs ) ;
84
91
serviceCreated = true ;
85
92
}
86
93
You can’t perform that action at this time.
0 commit comments