Skip to content

Commit 429da5b

Browse files
committed
Removed REGION variable, environment variable is used now
1 parent 6c71073 commit 429da5b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

labs/dragon-resort/events/load-test.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
# Get API endpoint from AWS CLI using API name for REST API (v1)
44
API_NAME="Dragon Store API"
5-
REGION="eu-central-1"
65

76
# Get API ID from name (REST API)
8-
API_ID=$(aws apigateway get-rest-apis --region $REGION | \
7+
API_ID=$(aws apigateway get-rest-apis --region $AWS_REGION | \
98
jq -r --arg NAME "$API_NAME" '.items[] | select(.name==$NAME) | .id')
109

1110
if [ -z "$API_ID" ]; then
@@ -14,7 +13,7 @@ if [ -z "$API_ID" ]; then
1413
fi
1514

1615
# Construct API endpoint for REST API
17-
API_ENDPOINT="https://${API_ID}.execute-api.${REGION}.amazonaws.com/prod"
16+
API_ENDPOINT="https://${API_ID}.execute-api.${AWS_REGION}.amazonaws.com/prod"
1817

1918
# Print API information for verification
2019
echo "Found API ID: $API_ID"

0 commit comments

Comments
 (0)