-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@aws-sdk/credential-providers 3.730.0 credentials
is missing error
#6816
Comments
Hopefully this helps with the obvious cases, though the dependency could still be pulled in transitively. aws/aws-sdk-js-v3#6816
Hopefully this helps with the obvious cases, though the dependency could still be pulled in transitively. aws/aws-sdk-js-v3#6816
Thanks for submitting this report. I am investigating this issue. As a workaround, please use 3.729.0, or provide credentials like this: import { PublishCommand, SNSClient } from "@aws-sdk/client-sns";
import { fromTemporaryCredentials, fromNodeProviderChain } from "@aws-sdk/credential-providers";
const sns = new SNSClient({
region: "ap-southeast-2",
credentials: fromTemporaryCredentials({
params: {
RoleArn: "arn:aws:iam::000000000000:role/some-role",
RoleSessionName: "some-session",
},
masterCredentials: fromNodeProviderChain()
}),
}); |
I ran into something similar today when upgrading the ERROR Error: Encountered resolution error in ./node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js for ./submodules/sts/endpoint/EndpointParameters: Error: Cannot find module './submodules/sts/endpoint/EndpointParameters' from './node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc' After digging into the mentioned file ( var import_httpAuthSchemeProvider = require("./submodules/sts/auth/httpAuthSchemeProvider");
var import_EndpointParameters = require("./submodules/sts/endpoint/EndpointParameters");
var import_runtimeConfig = require("./submodules/sts/runtimeConfig");
var import_runtimeExtensions = require("./submodules/sts/runtimeExtensions");
var import_EndpointParameters2 = require("./submodules/sts/endpoint/EndpointParameters");
var import_EndpointParameters3 = require("./submodules/sts/endpoint/EndpointParameters"); Those paths don't exist, and should be Hope this helps. |
@brchri thanks for reporting this too. I have created a fix PR for this and the original issue to be released later today. |
Fixes were released in https://github.com/aws/aws-sdk-js-v3/releases/tag/v3.731.0. |
It still incorrectly shows paths such as: var import_EndpointParameters2 = require("./submodules/sts/endpoint/EndpointParameters");
var import_EndpointParameters3 = require("./submodules/sts/endpoint/EndpointParameters"); My tree shaking is also still throwing the error, as I would expect with the above findings. I also confirmed in the I can create a separate issue for this if that makes sense, I added it here because I saw OP's error was referencing the same paths and thought it might be related, but if it's not and you'd rather track this separately, I can create a separate issue, I didn't mean to hijack this one. |
I see the issue is still there. There may be a problem with a stale build cache. I will investigate. |
We confirmed it was a build cache error, and we are preparing a new release. |
The new release was completed about 13 hours ago here: https://github.com/aws/aws-sdk-js-v3/releases/tag/v3.731.1. |
Checkboxes for prior research
Describe the bug
We ran into an error on Lambda when we bumped up our credential-providers package to 3.730.0.
I couldn't quite spot much in the diff: https://npmdiff.dev/%40aws-sdk%2Fcredential-providers/3.729.0/3.730.0/
Regression Issue
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
Node 20.18.0, Node 22.
Reproduction Steps
https://github.com/samchungy/aws-credentials-provider-bug
Observed Behavior
fromTemporaryCredentials
throws an errorExpected Behavior
It should not throw an error when using
fromTemporaryCredentials
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: