Skip to content

Commit 8df6a02

Browse files
authored
opensearch: update docs for newly supported versions (#190)
1 parent 9043e5d commit 8df6a02

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/content/docs/aws/services/opensearch.mdx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ The following versions of OpenSearch Service are supported by LocalStack:
2323
- 2.3
2424
- 2.7
2525
- 2.9
26-
- 2.11 (**default**)
26+
- 2.11
27+
- 2.13
28+
- 2.15
29+
- 2.17
30+
- 2.19
31+
- 3.1 (**default**)
2732

2833
OpenSearch is closely coupled with the [Elasticsearch Service](../elasticsearch).
2934
Clusters generated through the OpenSearch Service will be visible within the Elasticsearch Service interface, and vice versa.
@@ -257,15 +262,17 @@ Now you can start another container for OpenSearch Dashboards, which is configur
257262
- The version of OpenSearch Dashboards is the same as the OpenSearch domain.
258263

259264
```bash
260-
docker inspect localstack-main | \
261-
jq -r '.[0].NetworkSettings.Networks | to_entries | .[].value.IPAddress'
265+
LS_IP=$(docker inspect localstack-main | \
266+
jq -r '.[0].NetworkSettings.Networks | to_entries | .[].value.IPAddress')
267+
268+
LS_NETWORK=$(docker inspect localstack-main | jq -r '.[0].NetworkSettings.Networks | to_entries | .[].key')
262269

263270
docker run --rm -p 5601:5601 \
264-
--network ls \
265-
--dns 172.22.0.2 \
271+
--network $LS_NETWORK \
272+
--dns $LS_IP \
266273
-e "OPENSEARCH_HOSTS=http://secure-domain.us-east-1.opensearch.localhost.localstack.cloud:4566" \
267274
-e "OPENSEARCH_USERNAME=admin" -e 'OPENSEARCH_PASSWORD=really-secure-passwordAa!1' \
268-
opensearchproject/opensearch-dashboards:2.11.0
275+
opensearchproject/opensearch-dashboards:3.1.0
269276
```
270277

271278
Once the container is running, you can reach OpenSearch Dashboards at `http://localhost:5601` and you can log in with your OpenSearch domain credentials.

0 commit comments

Comments
 (0)