Skip to content

Commit 5050d95

Browse files
committed
Update signAWS.hbs
1 parent 5ec2200 commit 5050d95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/templates/core/functions/signAWS.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
async function signAWS({ url, options, headers, body }: { url: URL, options: ApiRequestOptions, headers: { [key: string]: any }, body?: any }): Promise<any> {
22
if(!process.env.AWS_REGION || !process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY || !process.env.AWS_SESSION_TOKEN) {
3-
return;
3+
throw new Error("Missing AWS Credentials");
44
}
55

66
const sigv4 = new SignatureV4({
@@ -23,4 +23,6 @@ async function signAWS({ url, options, headers, body }: { url: URL, options: Api
2323
headers: headers,
2424
body: body
2525
});
26+
27+
return signed;
2628
}

0 commit comments

Comments
 (0)