Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async deployFunction(credentials, inputs, regionList) {
if (!inputs.role) {
try {
const camClient = new Cam(credentials)
const roleExist = await camClient.CheckSCFExcuteRole()
if (roleExist) {
inputs.role = 'QCS_SCFExcuteRole'
}
} catch (e) {
// no op
}
}
const outputs = {}
const appId = this.getAppId()
const funcDeployer = async (curRegion) => {
const code = await uploadCodeToCos(this, appId, credentials, inputs, curRegion)
const scf = new Scf(credentials, curRegion)
const tempInputs = {