diff --git a/src/custom/util.ts b/src/custom/util.ts index b194de0..e6a1725 100644 --- a/src/custom/util.ts +++ b/src/custom/util.ts @@ -57,7 +57,8 @@ export const performAwsIamLogin = async (baseUrl: string, identityId: string, re { service: "sts", path: `/?${body}`, - region + region, + host: `sts.${region}.amazonaws.com` }, { accessKeyId: creds.accessKeyId, @@ -66,8 +67,6 @@ export const performAwsIamLogin = async (baseUrl: string, identityId: string, re } ); - delete signOpts.headers?.host; - delete signOpts.headers?.Host; const headers = { ...signOpts.headers };