diff --git a/e2e/addons/hello/package.json b/e2e/addons/hello/package.json index 1b2479eb5a4..ab8f7f3568a 100644 --- a/e2e/addons/hello/package.json +++ b/e2e/addons/hello/package.json @@ -8,7 +8,7 @@ "start": "node server.js" }, "dependencies": { - "aws-sdk": ">= 2.249.1", + "@aws-sdk/client-s3": ">= 3.0.0", "express": "^4.16.1", "pg": "^8.5.1" } diff --git a/e2e/addons/hello/server.js b/e2e/addons/hello/server.js index 4f7d55dde9c..d2404f5ea76 100644 --- a/e2e/addons/hello/server.js +++ b/e2e/addons/hello/server.js @@ -4,7 +4,7 @@ 'use strict'; const express = require('express'); -const AWS = require('aws-sdk'); +const { S3 } = require('@aws-sdk/client-s3'); // Constants const PORT = 80; @@ -22,7 +22,7 @@ const pool = new Pool({ }) // Get bucket name from environment variable. -const s3 = new AWS.S3({apiVersion: '2006-03-01'}); +const s3 = new S3(); const bucketName = process.env.MYBUCKET_NAME // App