-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Bug?]: Still using aws-sdk
and incorrect endpoint
#484
Comments
For future reference, this is a feature request for transformation for Endpoint from global import |
I had manually migrated the code (weeks ago) but, since this is regarding an automatic tool, I will keep the PR open. |
import aws from 'aws-sdk'; // Still Version 2
aws.config.credentials = options; // using version 2 This is an extension of request for |
Here is what we plan to do:
|
Only remaining ask is AWS.Endpoint which is being tracked in #694 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Self-service
Template name
v2-to-v3
Describe the bug
The cmd
npx aws-sdk-ts-codemod -t v2-to-v3 myfile.ts
transforms all but a few related lines of code correctly as shown belowInput code
Observed failure
The credentials seem to be configured using version 2. Creates a version 2 endpoint and tries to use in version 3 of kinesisVideoArchivedMedia.
The rest of the code seems to have converted properly.
Runtime error:
Expected output
No TypeScript errors and no runtime errors after conversion.
Before conversion, there are no errors.
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: