File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
labs/dragon-resort/events Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 22
33# Get API endpoint from AWS CLI using API name for REST API (v1)
44API_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
1110if [ -z " $API_ID " ]; then
@@ -14,7 +13,7 @@ if [ -z "$API_ID" ]; then
1413fi
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
2019echo " Found API ID: $API_ID "
You can’t perform that action at this time.
0 commit comments