Skip to content

Commit 55d4680

Browse files
committed
migrate to api gateway next gen provider
1 parent 65485a4 commit 55d4680

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The output will be:
5656

5757
```bash
5858
CloudFront URL: https://1e372b81.cloudfront.localhost.localstack.cloud
59-
API Gateway Endpoint: http://localhost:4566/restapis/4xu5emxibf/test/_user_request_
59+
API Gateway Endpoint: http://localhost:4566/_aws/execute-api/4xu5emxibf/test/_user_request_
6060
```
6161

6262
Navigate to the CloudFront URL to check out the app. The script would also seed some quiz data and user data to make local testing easier.

bin/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ log "Deploying API..."
220220
awslocal apigateway create-deployment \
221221
--rest-api-id $API_ID \
222222
--stage-name test >/dev/null
223-
API_ENDPOINT="http://localhost:4566/restapis/$API_ID/test/_user_request_"
223+
API_ENDPOINT="http://localhost:4566/_aws/execute-api/$API_ID/test/_user_request_"
224224
log "API deployed. Endpoint: $API_ENDPOINT"
225225

226226
# SQS DLQ -> EventBridge Pipes -> SNS

bin/seed.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ -z "$API_ID" ]; then
2525
exit 1
2626
fi
2727

28-
API_ENDPOINT="$AWS_ENDPOINT_URL/restapis/$API_ID/test/_user_request_"
28+
API_ENDPOINT="$AWS_ENDPOINT_URL/_aws/execute-api/$API_ID/test/_user_request_"
2929

3030
create_quiz() {
3131
local quiz_data=$1

frontend/scripts/populate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [ -z "$API_ID" ]; then
1414
exit 1
1515
fi
1616

17-
API_ENDPOINT="$AWS_ENDPOINT_URL/restapis/$API_ID/test/_user_request_"
17+
API_ENDPOINT="$AWS_ENDPOINT_URL/_aws/execute-api/$API_ID/test/_user_request_"
1818

1919
echo "REACT_APP_API_ENDPOINT=$API_ENDPOINT" > .env.local
2020

tests/test_infra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def api_endpoint():
1919
raise Exception(f"API {API_NAME} not found.")
2020

2121
API_ID = api['id']
22-
API_ENDPOINT = f"http://localhost:4566/restapis/{API_ID}/test/_user_request_"
22+
API_ENDPOINT = f"http://localhost:4566/_aws/execute-api/{API_ID}/test/_user_request_"
2323

2424
print(f"API Endpoint: {API_ENDPOINT}")
2525

tests/test_outage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def api_endpoint(apigateway_client):
2828
raise Exception(f"API {API_NAME} not found.")
2929

3030
API_ID = api['id']
31-
API_ENDPOINT = f"{LOCALSTACK_ENDPOINT}/restapis/{API_ID}/test/_user_request_"
31+
API_ENDPOINT = f"{LOCALSTACK_ENDPOINT}/_aws/execute-api/{API_ID}/test/_user_request_"
3232

3333
print(f"API Endpoint: {API_ENDPOINT}")
3434

0 commit comments

Comments
 (0)