backstage icon indicating copy to clipboard operation
backstage copied to clipboard

Update `aws-sdk` dependencies from v2 -> v3

Open benjdlambert opened this issue 3 years ago • 10 comments

Hey 👋

With recent releases of the aws-sdk, we now get a deprecation notice that we're using a version of aws-sdk that is in maintenance mode only. Let's get ahead of this and update the aws-sdk dependency that we're using in our deps!

There's 4 plugins and packages that need updating:

https://github.com/backstage/backstage/blob/5cc61c8577b5293c449a0c09bac3b0bcea1b4f48/packages/backend-common/package.json#L58

https://github.com/backstage/backstage/blob/359ded7d3be95361d65b45e7eeb2e131ad8710cf/plugins/catalog-backend-module-aws/package.json#L48

https://github.com/backstage/backstage/blob/5cc61c8577b5293c449a0c09bac3b0bcea1b4f48/plugins/kubernetes-backend/package.json#L50

https://github.com/backstage/backstage/blob/5cc61c8577b5293c449a0c09bac3b0bcea1b4f48/plugins/search-backend-module-elasticsearch/package.json#L32

There could be a codemod which is nice to help: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/migrating-to-v3.html

benjdlambert avatar Feb 20 '23 16:02 benjdlambert

I can work on it this weekend.

lucasguariscobr avatar Feb 23 '23 20:02 lucasguariscobr

@lucasguariscobr Sorry I missed this message. Did you have time to look at it? Otherwise, would you like to be assigned?

freben avatar Feb 27 '23 09:02 freben

Hey @freben, I'm working on the changes to "packages/backend-common". I was thinking of pushing the changes to this first package and then moving forward with the other changes. Is that OK?

lucasguariscobr avatar Feb 27 '23 23:02 lucasguariscobr

Can it be done piece by piece safely (as in, people having both dependencies in place at the same time)? If so, then yeah

freben avatar Feb 28 '23 06:02 freben

Created a PR: https://github.com/backstage/backstage/pull/16652

lucasguariscobr avatar Feb 28 '23 21:02 lucasguariscobr

Created a PR for the kubernetes plugin https://github.com/backstage/backstage/pull/17084

punkle avatar Mar 24 '23 14:03 punkle

Created a PR for elasticsearch backend #17619

aochsner avatar May 02 '23 19:05 aochsner

Also #17678

aochsner avatar May 05 '23 19:05 aochsner

Is there anything left with this story? I think it's done?

aochsner avatar Jun 20 '23 14:06 aochsner

@aochsner it's indeed done! 🎉

Big thank you to everyone that chipped in on this! ❤️

Rugvip avatar Jun 22 '23 12:06 Rugvip