aws / aws/aws-sdk-js-codemod

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

Open
#592 2 comments 1 reaction 0 assignees View on GitHub
enhancement p2
Dominant language
TypeScript
Stars
89
Forks
13
Avg merge
9h 59m
Merged PRs (30d)
1

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

Start with the listed AWS SDK v2 examples and the linked AWS SDK for JavaScript v3 migration guide; no files, tests, or entry points are named in the issue. Define the documented v3 conversions for the credential classes, Endpoint, HttpRequest, V4 signer, and NodeHttpClient, then verify the codemod handles those examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, nodejs, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.