Skip to content

Commit 82f30b3

Browse files
Merge pull request #103 from SmythOS/dev
Dev Merge
2 parents e56cb0c + a1c321c commit 82f30b3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@smythos/sre",
3-
"version": "1.5.51",
3+
"version": "1.5.52",
44
"description": "Smyth Runtime Environment",
55
"author": "Alaa-eddine KADDOURI",
66
"license": "MIT",

packages/core/src/helpers/AWSLambdaCode.helper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,12 @@ export async function createOrUpdateLambdaFunction(functionName, zipFilePath, aw
203203
};
204204

205205
const functionCreateCommand = new CreateFunctionCommand(functionParams);
206-
const functionResponse = await client.send(functionCreateCommand);
206+
await client.send(functionCreateCommand);
207207
// console.log('Function ARN:', functionResponse.FunctionArn);
208208
await verifyFunctionDeploymentStatus(functionName, client);
209+
// wait 500 ms to let the function trust policy be applied
210+
// it will only occur when the function is created for the first time
211+
await new Promise((resolve) => setTimeout(resolve, 500));
209212
}
210213
} catch (error) {
211214
throw error;

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@smythos/sdk",
3-
"version": "1.0.46",
3+
"version": "1.0.47",
44
"description": "SRE SDK",
55
"keywords": [
66
"smythos",

0 commit comments

Comments
 (0)