Update util.ts

This commit is contained in:
Daniel Hougaard
2024-09-23 23:01:57 +04:00
parent 07a6aede92
commit 614f7d0afd

View File

@@ -34,6 +34,12 @@ export const getAwsRegion = async () => {
export const performAwsIamLogin = async (baseUrl: string, identityId: string, region: string) => {
const body = "Action=GetCallerIdentity&Version=2011-06-15";
AWS.config.update({
region: region
});
console.log("creds", AWS.config.credentials);
const signOpts = aws4.sign(
{
service: "sts",