fix leaks and exception in Lambda logs
All checks were successful
Alexa skill build / build (push) Successful in 2m5s
All checks were successful
Alexa skill build / build (push) Successful in 2m5s
This commit is contained in:
parent
580f6657b9
commit
37dcb8fd6c
2 changed files with 4 additions and 3 deletions
|
|
@ -9,8 +9,8 @@
|
||||||
.hash = "controlr-0.1.0-upFm0LtgAAAo85RiRDa0WmSrORIhAa5bCF8UdT9rDyUk",
|
.hash = "controlr-0.1.0-upFm0LtgAAAo85RiRDa0WmSrORIhAa5bCF8UdT9rDyUk",
|
||||||
},
|
},
|
||||||
.lambda_zig = .{
|
.lambda_zig = .{
|
||||||
.url = "git+https://git.lerch.org/lobo/lambda-zig#5c36a2c979b0bd4f0cbda3d64fb997f341085bc9",
|
.url = "git+https://git.lerch.org/lobo/lambda-zig#2bdf23f375c1453cb471e8603b3cdbb6616aba28",
|
||||||
.hash = "lambda_zig-0.1.0-_G43_2ReAQDdEirp5hBDtuKAtAPzWjleCp9nw524BCdZ",
|
.hash = "lambda_zig-0.1.0-_G43_x1fAQD4mNzDFE-Iz9lSrwQctI6V6510luXlJAkc",
|
||||||
},
|
},
|
||||||
.aws = .{
|
.aws = .{
|
||||||
.url = "git+https://git.lerch.org/lobo/aws-sdk-for-zig#5c7aed071f6251d53a1627080a21d604ff58f0a5",
|
.url = "git+https://git.lerch.org/lobo/aws-sdk-for-zig#5c7aed071f6251d53a1627080a21d604ff58f0a5",
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ pub fn main() !u8 {
|
||||||
// Add permission with skill ID as event source token
|
// Add permission with skill ID as event source token
|
||||||
const services = aws.Services(.{.lambda}){};
|
const services = aws.Services(.{.lambda}){};
|
||||||
|
|
||||||
_ = aws.Request(services.lambda.add_permission).call(.{
|
const result = aws.Request(services.lambda.add_permission).call(.{
|
||||||
.function_name = function_name,
|
.function_name = function_name,
|
||||||
.statement_id = statement_id,
|
.statement_id = statement_id,
|
||||||
.action = "lambda:InvokeFunction",
|
.action = "lambda:InvokeFunction",
|
||||||
|
|
@ -145,6 +145,7 @@ pub fn main() !u8 {
|
||||||
try stderr.flush();
|
try stderr.flush();
|
||||||
return 1;
|
return 1;
|
||||||
};
|
};
|
||||||
|
result.deinit();
|
||||||
|
|
||||||
try stdout.print("Added Alexa permission for skill: {s}\n", .{skill_id});
|
try stdout.print("Added Alexa permission for skill: {s}\n", .{skill_id});
|
||||||
try stdout.flush();
|
try stdout.flush();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue