add comment about AWS_SECURITY_TOKEN

This commit is contained in:
Emil Lerch 2022-01-21 06:41:10 -08:00
parent a88995290c
commit e7734281c3
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -24,7 +24,7 @@ fn getEnvironmentCredentials(allocator: std.mem.Allocator) !?auth.Credentials {
(try getEnvironmentVariable(allocator, "AWS_ACCESS_KEY_ID")) orelse return null,
mutable_key,
(try getEnvironmentVariable(allocator, "AWS_SESSION_TOKEN")) orelse
try getEnvironmentVariable(allocator, "AWS_SECURITY_TOKEN"),
try getEnvironmentVariable(allocator, "AWS_SECURITY_TOKEN"), // Security token is backward compat only
);
}