909.sh
637 Bytes
#!/bin/bash
echo "=== 检查 API Gateway 配置 ==="
API_ID="o7epe60qzf"
echo "1. 检查 API Gateway 状态:"
aws apigateway get-rest-api --rest-api-id $API_ID --query '{Name:name, CreatedDate:createdDate, Version:version}' --output table
echo ""
echo "2. 检查 API Gateway 阶段:"
aws apigateway get-stages --rest-api-id $API_ID --query 'item[*].{StageName:stageName, DeploymentId:deploymentId}' --output table
echo ""
echo "3. 检查自定义域名配置:"
aws apigateway get-domain-names --query "items[?contains(domainName, 'awsmpc.asia')].{DomainName:domainName, CertificateArn:certificateArn, Status:status}" --output table