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

Updates uses of AWS SDK for JS v2 to v3, default to Node 18 #562

Merged
merged 21 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .npm-upgrade.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"@types/node": {
"versions": "20",
"reason": ""
},
"typescript": {
"versions": "5.2.2",
"reason": "conflict with other dependency"
}
}
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed

- Use AWS SDK for JavaScript v3 instead of v2
- Use Node 18 by default (with AWS SDK v3 preinstalled, instead of v2)
- Fix OpenAPI spec version from 1.0.0-rc.4 to 1.0.0
- Update fields, sort, and query extensions to v1.0.0
- Update transaction extension to v1.0.0-rc.3
Expand Down Expand Up @@ -67,6 +69,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Removed

- Elasticsearch is no longer supported as a backend. Only OpenSearch is now supported.
- Only fine-grained access control is supported for connecting to OpenSearch.
"AWS Connection" mode is no longer supported.

### Removed

- Elasticsearch is no longer supported as a backend. Only OpenSearch is now supported.
- Only fine-grained access control is supported for connecting to OpenSearch.
"AWS Connection" mode is no longer supported.
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [Architecture](#architecture)
- [Migration](#migration)
- [Unreleased](#unreleased)
- [Node 18 update](#node-18-update)
- [OpenSearch Version 2.9](#opensearch-version-29)
- [2.3.0](#230)
- [OpenSearch Version 2.7](#opensearch-version-27)
Expand Down Expand Up @@ -135,6 +136,16 @@ apiLambda --> opensearch

### Unreleased

#### Node 18 update

The default Lambda deployment environment is now Node 18. The major difference between
the Node 16 and Node 18 Lambda environment is that the Node 16 env includes AWS SDK
for JS v2, and Node 18 includes v3. This code has been updated to use v3, so the
Node 18 environment must be used, or the build must be modified to install the v3 libraries.

To update the deployment to use Node 18, modify the serverless config file value
`provider.runtime` to be `nodejs18.x` and the application re-deployed.

#### OpenSearch Version 2.9

- Update the `EngineVersion` setting in the serverless config file to `OpenSearch_2.9`
Expand Down
2 changes: 1 addition & 1 deletion bin/system-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export REQUEST_LOGGING_ENABLED=false

echo "Running tests"
set +e
npx ava "./tests/system/${TEST_PATTERN}" --serial
npx ava "./tests/system/${TEST_PATTERN}" --serial --verbose
TEST_RESULT="$?"
set -e

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
volumes:
- ./opensearch/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
localstack:
image: localstack/localstack
image: localstack/localstack:2.1.0
ports:
- "127.0.0.1:4566:4566"
environment:
Expand Down
Loading
Loading