Skip to content

Commit 7a5a3c0

Browse files
committed
disable legacy port handling for opensearch
1 parent 1bfe216 commit 7a5a3c0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# LocalStack Python Client Change Log
22

3+
* v1.31: Revert mapping for OpenSearch (drop support for `OPENSEARCH_ENDPOINT_STRATEGY=off`)
34
* v1.30: Allow legacy port handling for OpenSearch (to support `OPENSEARCH_ENDPOINT_STRATEGY=off`)
45
* v1.29: Add endpoint for OpenSearch
56
* v1.28: Add endpoint for Route53Resolver

localstack_client/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
'dynamodb': '{proto}://{host}:4569',
1616
'dynamodbstreams': '{proto}://{host}:4570',
1717
'elasticsearch': '{proto}://{host}:4571',
18-
'opensearch': '{proto}://{host}:4571',
1918
's3': '{proto}://{host}:4572',
2019
'firehose': '{proto}://{host}:4573',
2120
'lambda': '{proto}://{host}:4574',
@@ -24,6 +23,7 @@
2423
'redshift': '{proto}://{host}:4577',
2524
'redshift-data': '{proto}://{host}:4577',
2625
'es': '{proto}://{host}:4578',
26+
'opensearch': '{proto}://{host}:4578',
2727
'ses': '{proto}://{host}:4579',
2828
'sesv2': '{proto}://{host}:4579',
2929
'route53': '{proto}://{host}:4580',
@@ -110,7 +110,7 @@
110110
# TODO remove service port mapping above entirely
111111
if os.environ.get('USE_LEGACY_PORTS') not in ['1', 'true']:
112112
for key, value in _service_endpoints_template.items():
113-
if key not in ['dashboard', 'elasticsearch', 'opensearch']:
113+
if key not in ['dashboard', 'elasticsearch']:
114114
_service_endpoints_template[key] = '%s:%s' % (value.rpartition(':')[0], EDGE_PORT)
115115

116116

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = localstack-client
3-
version = 1.30
3+
version = 1.31
44
url = https://github.com/localstack/localstack-python-client
55
author = LocalStack Team
66
author_email = info@localstack.cloud

0 commit comments

Comments
 (0)