Skip to content

Commit d5abd15

Browse files
committed
Add debug output for response headers and skip cleanup
1 parent 5fbf26b commit d5abd15

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/deploy-examples.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,12 @@ jobs:
111111
echo "Response:"
112112
cat /tmp/response.json
113113
114-
echo "Invoke Response Headers:"
114+
echo "Full Invoke Response:"
115115
cat /tmp/invoke_response.json
116116
117+
echo "All Response Headers:"
118+
jq -r '.ResponseMetadata.HTTPHeaders' /tmp/invoke_response.json || echo "No HTTPHeaders found"
119+
117120
# Extract invocation ID from response headers
118121
INVOCATION_ID=$(jq -r '.ResponseMetadata.HTTPHeaders["x-amzn-invocation-id"] // empty' /tmp/invoke_response.json)
119122
if [ -n "$INVOCATION_ID" ]; then
@@ -157,13 +160,13 @@ jobs:
157160
echo "Execution History:"
158161
cat /tmp/history.json
159162
160-
- name: Cleanup Lambda function
161-
if: always()
162-
env:
163-
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
164-
run: |
165-
echo "Deleting function: $FUNCTION_NAME"
166-
aws lambda delete-function \
167-
--function-name "$FUNCTION_NAME" \
168-
--endpoint-url "$LAMBDA_ENDPOINT" \
169-
--region "${{ env.AWS_REGION }}" || echo "Function already deleted or doesn't exist"
163+
# - name: Cleanup Lambda function
164+
# if: always()
165+
# env:
166+
# LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
167+
# run: |
168+
# echo "Deleting function: $FUNCTION_NAME"
169+
# aws lambda delete-function \
170+
# --function-name "$FUNCTION_NAME" \
171+
# --endpoint-url "$LAMBDA_ENDPOINT" \
172+
# --region "${{ env.AWS_REGION }}" || echo "Function already deleted or doesn't exist"

0 commit comments

Comments
 (0)