Skip to content

Commit abcbaca

Browse files
authored
fix domain name and routes for AWS Proxy extension (#105)
1 parent e7bbd9c commit abcbaca

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v3
2222

23-
- name: Set up Python 3.11
23+
- name: Set up Python 3.x
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: '3.11'
26+
python-version: '3.13'
2727

2828
- name: Set up Terraform CLI
2929
uses: hashicorp/setup-terraform@v2
@@ -61,8 +61,8 @@ jobs:
6161
pip install awscli-local[ver1]
6262
pip install terraform-local
6363
64-
find /home/runner/.cache/localstack/volume/lib/extensions/python_venv/lib/python3.11/site-packages/aws*
65-
ls -la /home/runner/.cache/localstack/volume/lib/extensions/python_venv/lib/python3.11/site-packages/aws*
64+
find /home/runner/.cache/localstack/volume/lib/extensions/python_venv/lib/python3.*/site-packages/aws*
65+
ls -la /home/runner/.cache/localstack/volume/lib/extensions/python_venv/lib/python3.*/site-packages/aws*
6666
DEBUG=1 GATEWAY_SERVER=hypercorn localstack start -d
6767
localstack wait
6868

.github/workflows/miniflare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v3
2222

23-
- name: Set up Python 3.10
23+
- name: Set up Python 3.x
2424
id: setup-python
2525
uses: actions/setup-python@v4
2626
with:
27-
python-version: '3.11'
27+
python-version: '3.13'
2828

2929
- name: Install LocalStack and extension
3030
env:

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)