@kirkelliott/zap 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/init.js +2 -0
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -110,7 +110,9 @@ async function init(region) {
|
|
|
110
110
|
try {
|
|
111
111
|
const { Configuration } = await lambda.send(new client_lambda_1.GetFunctionCommand({ FunctionName: FUNCTION }));
|
|
112
112
|
functionArn = Configuration.FunctionArn;
|
|
113
|
+
await (0, client_lambda_1.waitUntilFunctionUpdated)({ client: lambda, maxWaitTime: 60 }, { FunctionName: FUNCTION });
|
|
113
114
|
await lambda.send(new client_lambda_1.UpdateFunctionCodeCommand({ FunctionName: FUNCTION, ZipFile: zip }));
|
|
115
|
+
await (0, client_lambda_1.waitUntilFunctionUpdated)({ client: lambda, maxWaitTime: 60 }, { FunctionName: FUNCTION });
|
|
114
116
|
await lambda.send(new client_lambda_1.UpdateFunctionConfigurationCommand({ FunctionName: FUNCTION, Environment: { Variables: env } }));
|
|
115
117
|
}
|
|
116
118
|
catch (err) {
|