We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b5d576 commit f48ee03Copy full SHA for f48ee03
1 file changed
.github/workflows/deploy-app.yml
@@ -91,12 +91,19 @@ jobs:
91
id: api
92
run: |
93
API_ID=$(aws apigatewayv2 get-apis \
94
- --query "Items[?Name=='node-api-dev-api'].ApiId" \
+ --query "Items[?Name==\`node-api-dev-api\`].ApiId" \
95
--output text)
96
97
+ if [ -z "$API_ID" ] || [ "$API_ID" == "None" ]; then
98
+ echo "ERROR: API 'node-api-dev-api' not found."
99
+ exit 1
100
+ fi
101
+
102
ENDPOINT=$(aws apigatewayv2 get-api \
- --api-id ${API_ID} \
103
+ --api-id "$API_ID" \
104
--query 'ApiEndpoint' \
105
106
107
echo "endpoint=${ENDPOINT}" >> $GITHUB_OUTPUT
108
+ echo "API endpoint: $ENDPOINT"
109
0 commit comments