Skip to content
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

[Feature]: Looking for codemod to be able to convert below examples #592

Open
1 task
abhirpat opened this issue Sep 19, 2023 · 2 comments
Open
1 task
Labels
enhancement New feature or request p2 This is a standard priority issue

Comments

@abhirpat
Copy link

abhirpat commented Sep 19, 2023

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 AWS.SharedIniFileCredentials({...);

const endpoint = new AWS.Endpoint(uri.host);

const req = new AWS.HttpRequest(endpoint);

const signer = new AWS.Signers.V4(req, 'es');
signer.addAuthorization(credentials, new Date());

const send = new AWS.NodeHttpClient();

Solution

The codemode to convert them to V3 https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/migrating-to-v3.html

Alternatives

N/A

Additional context

No response

@abhirpat abhirpat added the enhancement New feature or request label Sep 19, 2023
@abhirpat abhirpat changed the title [Feature]: Looking for codemode to convert below examples [Feature]: Looking for codemod to be able to convert below examples Sep 19, 2023
@trivikr trivikr added the p2 This is a standard priority issue label Sep 20, 2023
@trivikr
Copy link
Member

trivikr commented Oct 23, 2023

Transformation for Credentials was added in #598

@trivikr
Copy link
Member

trivikr commented Nov 5, 2023

AWS.Endpoint is also used in nocodb

https://github.com/search?q=repo%3Anocodb%2Fnocodb%20AWS.Endpoint&type=code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

2 participants