Skip to content

Commit 65affaf

Browse files
committed
feat(scf): support cfs config
1 parent 79a483d commit 65affaf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/modules/scf/utils.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,24 @@ const formatFunctionInputs = (region, inputs) => {
253253
functionInputs['DeadLetterConfig.FilterType'] = inputs.deadLetter.filterType;
254254
}
255255
}
256+
257+
// cfs config
258+
if (inputs.cfsConfig) {
259+
functionInputs.CfsConfig = {
260+
CfsInsList: [],
261+
};
262+
inputs.cfsConfig.forEach((item) => {
263+
functionInputs.CfsConfig.CfsInsList.push({
264+
CfsId: item.cfsId,
265+
MountInsId: item.MountInsId || item.cfsId,
266+
LocalMountDir: item.localMountDir,
267+
RemoteMountDir: item.remoteMountDir,
268+
UserGroupId: item.userGroupId || 10000,
269+
UserId: item.userId || 10000,
270+
});
271+
});
272+
}
273+
256274
return functionInputs;
257275
};
258276

0 commit comments

Comments
 (0)