用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill hybrid-cloud命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | hybrid-cloud |
| description | Hybrid cloud architecture and integration |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"architect, devops-engineer","category":"devops"} |
┌─────────────────────────────────────────────────────────┐
│ Load Balancer │
└─────────────────────┬───────────────────────────────────┘
│
┌────────────┼────────────┐
│ │ │
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ On-Prem │ │ AWS │ │ Azure │
│ K8s │ │ EKS │ │ AKS │
│ Cluster │ │ Cluster │ │ Cluster │
└────┬────┘ └────┬────┘ └────┬────┘
│ │ │
└────────────┼────────────┘
│
┌──────▼──────┐
│ Database │
│ (RDS/Cloud) │
└─────────────┘
# Outposts configuration
resource "aws_outposts_instance" "app" {
instance_type = "m5.large"
outpost_arn = aws_outposts_outpost.example.arn
placement_group_strategy = "cluster"
root_volume {
size = 100
type = "gp2"
}
network_interface {
network_interface_id = aws_network_interface.example.id
device_index = 0
}
}
# Connect on-prem cluster to Azure Arc
az connectedk8s connect \
--name my-cluster \
--resource-group my-rg \
--location eastus
# Enable Azure Arc services
az k8s-extension create \
--cluster-name my-cluster \
--resource-group my-rg \
--extension-type "Microsoft.AzureDataBox" \
--name "azure-arc-data-services"
# AWS VPN connection
resource "aws_vpn_connection" "onprem" {
vpn_gateway_id = aws_vpn_gateway.main.id
customer_gateway_id = aws_customer_gateway.onprem.id
type = "ipsec.1"
static_routes_only = true
tunnel1_preshared_key = "secret1"
tunnel2_preshared_key = "secret2"
static_routes {
destination_cidr_block = "10.0.0.0/16"
}
}
# GCP Cloud Interconnect
resource "google_compute_interconnect_attachment" "onprem" {
name = "hybrid-interconnect"
region = "us-central1"
router = google_compute_router.main.name
interconnect = "volcareno interc 1"
}
# AWS IAM Roles Anywhere for on-prem
- role:
arn: arn:aws:iam::123456789012:role/CrossCloudRole
credential_source:
environment:
name: AWS_ACCESS_KEY_ID
certificate:
name: AWS_CERTIFICATE_FILE
class HybridDataSync:
def sync_to_cloud(self, data):
# Local processing
processed = self.process(data)
# Batch upload
self.cloud_client.upload_batch(processed)
# Maintain local copy
self.local_store.store(processed)
def resolve_conflicts(self, local, cloud):
# Last-write-wins or custom logic
if local.timestamp > cloud.timestamp:
return local
return cloud
| Benefits | Challenges |
|---|---|
| Flexibility | Network complexity |
| Gradual migration | Security management |
| Regulatory compliance | Data sovereignty |
| Burst capacity | Latency considerations |
| Disaster recovery | Unified monitoring |
| Best-of-breed services | Skill requirements |