- 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.
35 lines
1023 B
Bash
Executable File
35 lines
1023 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Start all stopped AKS clusters
|
|
|
|
set -e
|
|
|
|
SUBSCRIPTION_ID="fc08d829-4f14-413d-ab27-ce024425db0b"
|
|
|
|
echo "=== Starting Stopped AKS Clusters ==="
|
|
echo ""
|
|
|
|
# Get stopped clusters
|
|
STOPPED=$(az aks list --subscription "$SUBSCRIPTION_ID" --query "[?contains(name, 'az-p-') && powerState.code == 'Stopped'].{name:name, rg:resourceGroup}" -o json)
|
|
|
|
COUNT=$(echo "$STOPPED" | jq '. | length')
|
|
|
|
if [ "$COUNT" -eq 0 ]; then
|
|
echo "✅ No stopped clusters found"
|
|
exit 0
|
|
fi
|
|
|
|
echo "Found $COUNT stopped clusters"
|
|
echo ""
|
|
|
|
echo "$STOPPED" | jq -r '.[] | "\(.rg)|\(.name)"' | while IFS='|' read -r rg name; do
|
|
echo "Starting $name in $rg..."
|
|
az aks start --name "$name" --resource-group "$rg" --subscription "$SUBSCRIPTION_ID" --no-wait 2>&1 | grep -v "Warning\|Deprecated" || true
|
|
echo " ✅ Start initiated"
|
|
done
|
|
|
|
echo ""
|
|
echo "=== ✅ Cluster Starts Initiated ==="
|
|
echo ""
|
|
echo "Clusters are starting in the background."
|
|
echo "Wait a few minutes for clusters to start, then re-run Terraform or next steps."
|