Files
smom-dbis-138/scripts/deployment/check-terraform-status.sh
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

24 lines
923 B
Bash
Executable File

#!/usr/bin/env bash
# Quick Terraform status checker
echo "=== Terraform Status Check ==="
echo ""
if ps aux | grep -q '[t]erraform apply'; then
echo "✅ Terraform RUNNING"
ps aux | grep '[t]erraform apply' | grep -v grep | head -1 | awk '{print " PID: "$2", CPU: "$3"%, MEM: "$4"%"}'
else
echo "⏳ Terraform IDLE/COMPLETE"
fi
echo ""
echo "Latest log file:"
ls -t /tmp/terraform-apply-*.log 2>/dev/null | head -1 | xargs -I {} sh -c 'echo " {}" && tail -3 {}'
echo ""
echo "Cluster status:"
READY=$(az aks list --subscription fc08d829-4f14-413d-ab27-ce024425db0b --query "[?contains(name, 'az-p-') && provisioningState == 'Succeeded'].name" -o tsv 2>/dev/null | wc -l)
CREATING=$(az aks list --subscription fc08d829-4f14-413d-ab27-ce024425db0b --query "[?contains(name, 'az-p-') && provisioningState == 'Creating'].name" -o tsv 2>/dev/null | wc -l)
echo " Ready: $READY/24"
echo " Creating: $CREATING"