Skip to content

Commit 51880d8

Browse files
author
Phil Varner
authored
Updates uses of AWS SDK for JS v2 to v3, default to Node 18 (#562)
* remove elasticsearch support * remove aws connection support * update docs on fine-grained access control * add USGS Astrogeology api * upgrade to AWS SDK for JS v3 and Node 18 runtime * use 127.0.0.1 instead of localhost to avoid connecting to the IPv6 loopback * add migration * upgrade packages versions * update pl * upgrade more dep versions, update default OpenSearch version to 2.9 * fix diff * fix merge error in readme * fixes * fix merge
1 parent 39a4e1e commit 51880d8

20 files changed

+14477
-26493
lines changed

.npm-upgrade.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"@types/node": {
44
"versions": "20",
55
"reason": ""
6+
},
7+
"typescript": {
8+
"versions": "5.2.2",
9+
"reason": "conflict with other dependency"
610
}
711
}
812
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased] - TBD
9+
10+
### Changed
11+
12+
- Use AWS SDK for JavaScript v3 instead of v2
13+
- Use Node 18 by default (with AWS SDK v3 preinstalled, instead of v2)
14+
815
## [2.4.0] - 2023-11-08
916

1017
### Changed
@@ -67,6 +74,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6774

6875
### Removed
6976

77+
- Elasticsearch is no longer supported as a backend. Only OpenSearch is now supported.
78+
- Only fine-grained access control is supported for connecting to OpenSearch.
79+
"AWS Connection" mode is no longer supported.
80+
81+
### Removed
82+
7083
- Elasticsearch is no longer supported as a backend. Only OpenSearch is now supported.
7184
- Only fine-grained access control is supported for connecting to OpenSearch.
7285
"AWS Connection" mode is no longer supported.
@@ -361,7 +374,7 @@ Initial release, forked from [sat-api](https://github.com/sat-utils/sat-api/tree
361374

362375
Compliant with STAC 0.9.0
363376

364-
<!-- [Unreleased]: https://github.com/stac-utils/stac-api/compare/v2.3.0...main -->
377+
[Unreleased]: https://github.com/stac-utils/stac-api/compare/v2.4.0...main
365378
[2.4.0]: https://github.com/stac-utils/stac-api/compare/v2.3.0...v2.4.0
366379
[2.3.0]: https://github.com/stac-utils/stac-api/compare/v2.2.3...v2.3.0
367380
[2.2.3]: https://github.com/stac-utils/stac-api/compare/v2.2.2...v2.2.3

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- [Overview](#overview)
77
- [Architecture](#architecture)
88
- [Migration](#migration)
9+
- [Unreleased](#unreleased)
10+
- [Node 18 update](#node-18-update)
911
- [2.4.0](#240)
1012
- [OpenSearch Version 2.9](#opensearch-version-29)
1113
- [2.3.0](#230)
@@ -133,6 +135,18 @@ apiLambda --> opensearch
133135

134136
## Migration
135137

138+
### Unreleased
139+
140+
#### Node 18 update
141+
142+
The default Lambda deployment environment is now Node 18. The major difference between
143+
the Node 16 and Node 18 Lambda environment is that the Node 16 env includes AWS SDK
144+
for JS v2, and Node 18 includes v3. This code has been updated to use v3, so the
145+
Node 18 environment must be used, or the build must be modified to install the v3 libraries.
146+
147+
To update the deployment to use Node 18, modify the serverless config file value
148+
`provider.runtime` to be `nodejs18.x` and the application re-deployed.
149+
136150
### 2.4.0
137151

138152
#### OpenSearch Version 2.9

bin/system-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export REQUEST_LOGGING_ENABLED=false
1111

1212
echo "Running tests"
1313
set +e
14-
npx ava "./tests/system/${TEST_PATTERN}" --serial
14+
npx ava "./tests/system/${TEST_PATTERN}" --serial --verbose
1515
TEST_RESULT="$?"
1616
set -e
1717

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
volumes:
99
- ./opensearch/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
1010
localstack:
11-
image: localstack/localstack
11+
image: localstack/localstack:2.1.0
1212
ports:
1313
- "127.0.0.1:4566:4566"
1414
environment:

0 commit comments

Comments
 (0)