chore: удалить временный диагностический скрипт

This commit is contained in:
Naeel
2026-04-11 09:44:53 +03:00
parent 38194fb2fa
commit 95d1dc1adb
-26
View File
@@ -1,26 +0,0 @@
#!/bin/bash
set -e
T=$(curl -s -X POST https://qu.kube5s.ru/admin/tenants \
-H "Authorization: Bearer sqs-admin-7a7d8bd0c060a75c198d48680f34077a" \
-H "Content-Type: application/json" \
-d '{"name":"tag-debug","max_queues":5}')
echo "Tenant response: $T"
AK=$(echo "$T" | jq -r '.access_key')
SK=$(echo "$T" | jq -r '.secret_key')
TID=$(echo "$T" | jq -r '.id')
echo "AK=$AK TID=$TID"
Q=$(AWS_ACCESS_KEY_ID="$AK" AWS_SECRET_ACCESS_KEY="$SK" AWS_DEFAULT_REGION=us-east-1 \
aws --endpoint-url https://qu.kube5s.ru --output json sqs create-queue --queue-name dbg-q 2>&1)
echo "CreateQueue: $Q"
QURL=$(echo "$Q" | jq -r '.QueueUrl' 2>/dev/null || true)
echo "QURL=$QURL"
echo "--- TagQueue raw response ---"
AWS_ACCESS_KEY_ID="$AK" AWS_SECRET_ACCESS_KEY="$SK" AWS_DEFAULT_REGION=us-east-1 \
aws --endpoint-url https://qu.kube5s.ru --debug sqs tag-queue --queue-url "$QURL" --tags env=test 2>&1 | grep -E "HTTP|body|Error|400|tag" | head -30
# Cleanup
curl -s -X DELETE "https://qu.kube5s.ru/admin/tenants/${TID}" \
-H "Authorization: Bearer sqs-admin-7a7d8bd0c060a75c198d48680f34077a" > /dev/null
echo "Cleaned up"