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.
This commit is contained in:
52
scripts/deployment/deploy-infrastructure-phase1.sh
Executable file
52
scripts/deployment/deploy-infrastructure-phase1.sh
Executable file
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
# Phase 1: Deploy Azure Infrastructure
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/../.."
|
||||
|
||||
# Color codes
|
||||
|
||||
echo "==================================================================="
|
||||
echo " PHASE 1: AZURE INFRASTRUCTURE DEPLOYMENT"
|
||||
echo "==================================================================="
|
||||
|
||||
# Load environment variables
|
||||
if [ -f .env ]; then
|
||||
source .env 2>/dev/null || true
|
||||
fi
|
||||
|
||||
cd terraform
|
||||
|
||||
# Check if terraform.tfvars exists
|
||||
if [ ! -f "terraform.tfvars" ]; then
|
||||
if [ -f "terraform.tfvars.example" ]; then
|
||||
log_warn "⚠️ terraform.tfvars not found, creating from example..."
|
||||
cp terraform.tfvars.example terraform.tfvars
|
||||
log_error "❌ Please edit terraform.tfvars with your values before proceeding"
|
||||
exit 1
|
||||
else
|
||||
log_error "❌ terraform.tfvars not found and no example available"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Initialize Terraform
|
||||
log_info "Initializing Terraform..."
|
||||
terraform init
|
||||
|
||||
# Validate configuration
|
||||
log_info "Validating Terraform configuration..."
|
||||
terraform validate
|
||||
|
||||
# Create plan
|
||||
log_info "Creating Terraform plan..."
|
||||
terraform plan -out=tfplan
|
||||
|
||||
log_warn "⚠️ REVIEW THE PLAN ABOVE"
|
||||
echo "To apply this plan, run:"
|
||||
echo " terraform apply tfplan"
|
||||
echo "Or to apply directly:"
|
||||
echo " terraform apply"
|
||||
|
||||
cd ..
|
||||
Reference in New Issue
Block a user