fix: correct outputs for role chaining (#1633)

re-instantiate stsClient when roleChaining

technically a breaking change
This commit is contained in:
Michael Lehmann
2026-01-29 10:47:17 -08:00
committed by GitHub
parent a7a2c1125c
commit 7ceaf96edc
3 changed files with 14 additions and 4 deletions
+4 -1
View File
@@ -121,7 +121,10 @@ export async function run() {
exportRegion(region, outputEnvCredentials);
// Instantiate credentials client
const clientProps: { region: string; proxyServer?: string; noProxy?: string } = { region };
const clientProps: { region: string; proxyServer?: string; noProxy?: string; roleChaining: boolean } = {
region,
roleChaining,
};
if (proxyServer) clientProps.proxyServer = proxyServer;
if (noProxy) clientProps.noProxy = noProxy;
const credentialsClient = new CredentialsClient(clientProps);