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

Upgrade to AWS SDK v3 #4281

Merged
merged 2 commits into from
Nov 3, 2023
Merged

Upgrade to AWS SDK v3 #4281

merged 2 commits into from
Nov 3, 2023

Conversation

svenaas
Copy link
Contributor

@svenaas svenaas commented Oct 26, 2023

Fixes #3989

Changes proposed in this pull request:

  • Update AWS SDK from v2 to v3 (2.879.0 to 3.387.0)
  • Switch to aws-sdk-client-mock for mocking AWS SDK calls

security considerations

None. This is an update to an important dependency to keep us on a supported version.

@svenaas svenaas force-pushed the 3989-upgrade-to-aws-sdk-v3 branch from 49cffe4 to 2e0e8be Compare October 26, 2023 13:53
@svenaas svenaas marked this pull request as ready for review October 26, 2023 18:20
@svenaas svenaas requested a review from a team October 26, 2023 18:22
Copy link
Contributor

@drewbo drewbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one small note for DRY sake; otherwise I saw (and approved of) most of this while pairing

}

listCommonPrefixes(prefix) {
async listCommonPrefixes(prefix) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the three list/paginated functions could go back to using a helper function like before because they all have the same structure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this is pushed.

@svenaas svenaas requested a review from drewbo October 26, 2023 21:07
@svenaas
Copy link
Contributor Author

svenaas commented Oct 26, 2023

Next week when Drew and I are both here we should test this on dev — and subsequently on staging — to give the actual connection to S3 a shakedown.

Copy link
Contributor

@apburnes apburnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Just a question about the site remover functionality.

api/services/S3SiteRemover.js Outdated Show resolved Hide resolved
@svenaas svenaas requested a review from apburnes October 30, 2023 16:19
apburnes
apburnes previously approved these changes Oct 30, 2023
Copy link
Contributor

@apburnes apburnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S3 bucket deletion is not working in dev

@apburnes apburnes self-requested a review October 30, 2023 17:04
@drewbo drewbo force-pushed the 3989-upgrade-to-aws-sdk-v3 branch from 330f19c to 4320c88 Compare October 31, 2023 13:43
@svenaas svenaas force-pushed the 3989-upgrade-to-aws-sdk-v3 branch 2 times, most recently from dbb0896 to 21bce64 Compare November 2, 2023 17:05
@svenaas
Copy link
Contributor Author

svenaas commented Nov 2, 2023

@apburnes @drewbo Creation and deletion and the published file page should all be working now. Please come back and review again.

Copy link
Contributor

@drewbo drewbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed all of site creation/deletion, published files, and old build log fetching. There is one small error that I think we can push to a separate issue. If you click published files immediately after the site is created, it will still error but I think that can be handled separately in the front end

@svenaas svenaas force-pushed the 3989-upgrade-to-aws-sdk-v3 branch from 2a39267 to 3747620 Compare November 3, 2023 16:27
@svenaas svenaas merged commit ef71f75 into main Nov 3, 2023
3 checks passed
@svenaas svenaas deleted the 3989-upgrade-to-aws-sdk-v3 branch November 3, 2023 16:38
@svenaas svenaas changed the title WIP Upgrade to AWS SDK v3 Upgrade to AWS SDK v3 Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to aws-sdk v3
3 participants