-
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
[Feature]: transform new S3({ accessKeyId })
#454
Comments
I'm also having the same issue |
I'm also getting TS2339: Property 'upload' does not exist on type 'S3'. here: return await this.s3
.upload({
Bucket: this.bucket,
Key: key,
Body: file.buffer,
ContentType: file.mimetype,
})
.promise(); and TS2339: Property 'promise' does not exist on type 'Promise ' here: async deleteFile(key) {
await this.s3
.deleteObject({
Bucket: this.bucket,
Key: key,
})
.promise();
} I'm not a big AWS user so this may be partly because of my own poor code. I will be sticking to v2 for now because it's just causing too many errors with no information about how to debug |
I guess that's a separate issue that the codemod can't track |
I ran into the same issue. Simply put
Should be transformed into
|
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
Input code
Expected Output
I don't know what's expected.
Additional context
Actual result:
But
accessKeyId
doesn't seem to be supported by the S3 constructor in v3, and thus probably should be converted to something else.The text was updated successfully, but these errors were encountered: