aws-sdk-js-codemod
aws-sdk-js-codemod copied to clipboard
Codemod scripts to update AWS SDK for JavaScript APIs.
### Self-service - [ ] I'd be willing to implement a fix ### Describe the bug SDK V2 to V3 migration using codemod is adding extra time which is causing...
### Self-service - [ ] I'd be willing to implement this feature ### Problem The new instance creation of AWS.Credentials class is not replaced. Examples ```js import AWS from "aws-sdk";...
### Self-service - [ ] I'd be willing to implement this feature ### Input code ```ts import("aws-sdk") .then((module) => { return module.S3; }) .then(() => { const AWS = require("aws-sdk");...
### Self-service - [ ] I'd be willing to implement this feature ### Problem Codemod does not transform tsx files in project tagspaces ```console $ npx [email protected] -t v2-to-v3 app/containers/MainPage.tsx...
### Self-service - [ ] I'd be willing to implement this feature ### Problem Transformation of named import of DocumentClient from deep path is not supported ```js import { DocumentClient...
### Self-service - [ ] I'd be willing to implement this feature ### Problem ``` const AWS = require('aws-sdk'); credentials = new AWS.EC2MetadataCredentials() credentials = new AWS.EnvironmentCredentials('AWS'); credentials = new...
### Self-service - [ ] I'd be willing to implement this feature ### Problem When running: npx aws-sdk-js-codemod -t v2-to-v3 example.js I get: Processing 1 files... Spawning 1 workers... Sending...
### Self-service - [ ] I'd be willing to implement this feature ### Problem Application code may use multiple JS SDK clients. Transforming all of them in one pass might...
### Self-service - [ ] I'd be willing to implement this feature ### Problem In https://github.com/awslabs/aws-sdk-js-codemod/issues/531, we plan to recommend users to use latest version of codemod in every run....
[Bug]: v2-to-v3 codemod imports DynamoDB.DocumentClient non AttributeValue types from lib-dynamodb
### Self-service - [ ] I'd be willing to implement a fix ### Describe the bug The v2-to-v3 codemod imports DynamoDB.DocumentClient non AttributeValue types from lib-dynamodb ### Steps to reproduce...