Skip to content

Commit fb10608

Browse files
committed
fix domain name and routes for AWS Proxy extension
1 parent e7bbd9c commit fb10608

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ You can install the respective extension by calling `localstack install <Install
6767

6868
| Extension | Install name | Version | Support status |
6969
|----------------------------------------------------------------------------------------------------| ------------ |---------| -------------- |
70-
| [AWS Proxy](https://github.com/localstack/localstack-extensions/tree/main/aws-proxy) | localstack-extension-aws-proxy | 0.2.0 | Experimental |
70+
| [AWS Proxy](https://github.com/localstack/localstack-extensions/tree/main/aws-proxy) | localstack-extension-aws-proxy | 0.2.1 | Experimental |
7171
| [Diagnosis Viewer](https://github.com/localstack/localstack-extensions/tree/main/diagnosis-viewer) | localstack-extension-diagnosis-viewer | 0.1.0 | Stable |
7272
| [Hello World](https://github.com/localstack/localstack-extensions/tree/main/hello-world) | localstack-extension-hello-world | 0.1.0 | Stable |
7373
| [httpbin](https://github.com/localstack/localstack-extensions/tree/main/httpbin) | localstack-extension-httpbin | 0.1.0 | Stable |

aws-proxy/aws_proxy/server/request_handler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
LOG = logging.getLogger(__name__)
3434

35-
DOMAIN_NAME = f"aws-replicator.{LOCALHOST_HOSTNAME}"
35+
DOMAIN_NAME = f"aws-proxy.{LOCALHOST_HOSTNAME}"
3636
ROUTE_HOST = f"{DOMAIN_NAME}<port:port>"
3737

3838

@@ -71,17 +71,17 @@ def set_status(self, request: Request, **kwargs):
7171

7272
@route("/", methods=["GET"], host=ROUTE_HOST)
7373
def forward_from_root(self, request: Request, **kwargs):
74-
return redirect(f"{INTERNAL_RESOURCE_PATH}/aws-replicator/index.html")
74+
return redirect(f"{INTERNAL_RESOURCE_PATH}/aws-proxy/index.html")
7575

76-
@route(f"{INTERNAL_RESOURCE_PATH}/aws-replicator", methods=["GET"])
76+
@route(f"{INTERNAL_RESOURCE_PATH}/aws-proxy", methods=["GET"])
7777
def forward_from_extension_root(self, request: Request, **kwargs):
78-
return redirect(f"{INTERNAL_RESOURCE_PATH}/aws-replicator/index.html")
78+
return redirect(f"{INTERNAL_RESOURCE_PATH}/aws-proxy/index.html")
7979

8080
@route("/favicon.png", methods=["GET"], host=ROUTE_HOST)
8181
def serve_favicon(self, request: Request, **kwargs):
8282
return self.serve_static_file("/favicon.png")
8383

84-
@route(f"{INTERNAL_RESOURCE_PATH}/aws-replicator/<path:path>", methods=["GET"])
84+
@route(f"{INTERNAL_RESOURCE_PATH}/aws-proxy/<path:path>", methods=["GET"])
8585
def get_web_asset(self, request: Request, path: str, **kwargs):
8686
return self.serve_static_file(path)
8787

aws-proxy/aws_proxy/server/ui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>AWS Replicator - LocalStack Extension</title>
5+
<title>AWS Cloud Proxy - LocalStack Extension</title>
66
<link rel="shortcut icon" href="/favicon.png" />
77
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js"></script>
88
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js"></script>

aws-proxy/example/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test: ## Run the end-to-end test with a simple sample app
66
echo "Creating SQS queue in real AWS"; \
77
aws sqs create-queue --queue-name test-queue1; \
88
queueUrl=$$(aws sqs get-queue-url --queue-name test-queue1 | jq -r .QueueUrl); \
9-
echo "Starting AWS replicator proxy"; \
9+
echo "Starting AWS Proxy"; \
1010
(DEBUG=1 localstack aws proxy -s s3,sqs --host 0.0.0.0 & ); \
1111
echo "Deploying Terraform template locally"; \
1212
tflocal init; \

aws-proxy/setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
name = localstack-extension-aws-proxy
3-
version = 0.2.0
4-
summary = LocalStack AWS Proxy Extension
3+
version = 0.2.1
4+
summary = LocalStack AWS Cloud Proxy
55
description = Proxy AWS resources into your LocalStack instance
66
long_description = file: README.md
77
long_description_content_type = text/markdown; charset=UTF-8

0 commit comments

Comments
 (0)