From 782f64ce64e7c83f964970c7eeacba0d5c9dfb91 Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Sun, 1 Dec 2019 22:23:59 -0800 Subject: [PATCH] Add support for AWS_SESSION_TOKEN temporary credentials --- client/create_headers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/create_headers.ts b/client/create_headers.ts index 40d63a5..aa0e66e 100644 --- a/client/create_headers.ts +++ b/client/create_headers.ts @@ -71,6 +71,7 @@ export function createHeaders( "Content-Type": POST_CONTENT_TYPE, "X-Amz-Date": amzDate, "X-Amz-Target": amzTarget, + "X-Amz-Security-Token": Deno.env("AWS_SESSION_TOKEN"), Authorization: authorizationHeader }); }