cognis-digital/cloud-setups
GitHub: cognis-digital/cloud-setups
整合 Firebase、GCP 和 Azure 三大云平台项目初始化、部署脚本与 IaC 模板的一站式入门套件,帮助开发者快速引导和部署云基础设施。
Stars: 0 | Forks: 0
# cloud-setups
### 开箱即用的 **Firebase · GCP · Azure** 项目设置 — 引导、部署、IaC 和 emulators 集于一个仓库。
[](LICENSE)   
一个合并、重塑品牌的入门套件,将广受欢迎的 cloud-starter 生态系统中的模式提炼到
一个地方 — 复制文件夹,设置您的 ID,即可部署。
## 使用说明 — 逐步指南
1. **获取仓库**并选择您需要的堆栈文件夹:
git clone https://github.com/cognis-digital/cloud-setups && cd cloud-setups
每个文件夹都是独立的:[`firebase/`](firebase/)、[`gcp/`](gcp/)、[`azure/`](azure/)。
2. **设置您的项目 ID / 凭据**以用于目标云(例如 `PROJECT_ID`、`gcloud auth`、`az login`、`firebase login`)。
3. **引导并部署**所选堆栈及其内置脚本:
cd firebase && bash deploy.sh # Firebase(默认为 emulators)
PROJECT_ID=my-proj bash gcp/bootstrap.sh # GCP:启用 APIs + Cloud Run
bash azure/bootstrap.sh # Azure Container Apps
4. **检查结果** — Firebase 部署会在本地启动完整的 emulator 套件;GCP/Azure 会打印已部署的服务 URL。访问它以确认部署:
curl -s "$SERVICE_URL"
5. **作为 CI 中的 IaC 进行管理** — GCP(Terraform `google_cloud_run_v2_service`)和 Azure(Bicep + Terraform `azurerm`)的定义已提交,因此流水线可以在每次更改时对相同的基础设施执行 `terraform apply`。
## Firebase · [`firebase/`](firebase/)
`firebase.json`、Firestore 规则与索引、Cloud Functions、Hosting SPA 重定向、完整的 **emulator 套件**、`deploy.sh`。
```
cd firebase && bash deploy.sh # emulators by default
```
## GCP · [`gcp/`](gcp/)
`bootstrap.sh`(启用 APIs + Artifact Registry)、**Cloud Run** 部署、Terraform(`google_cloud_run_v2_service`)。
```
PROJECT_ID=my-proj bash gcp/bootstrap.sh
```
## Azure · [`azure/`](azure/)
`bootstrap.sh`(**Container Apps**)、**Bicep** + Terraform(`azurerm`)。
```
bash azure/bootstrap.sh
```
## 它如何运作
```
flowchart LR
U[You / CI / Agent] --> R[cloud-setups]
R --> O[Outputs & artifacts]
R --> M[MCP / JSON]
M --> AI[AI agents]
R --> S[Cognis Neural Suite]
```
**探索套件 →** [🗂️ 所有工具](https://github.com/cognis-digital/cognis-neural-suite) · [⭐ awesome-cognis](https://github.com/cognis-digital/awesome-cognis) · [🔗 cognis-sources](https://github.com/cognis-digital/cognis-sources)
## 互操作性
`cloud-setups` 与包含 300 多个工具的 Cognis 套件组合使用 — JSON 输入/输出以及共享的
兼容 OpenAI 的 `/v1` 主干网络。请参阅 **[INTEROP.md](INTEROP.md)** 了解
套件图谱、组合模式和参考堆栈。
## 集成
通过
[`cognis-connect`](https://github.com/cognis-digital/cognis-connect) 将 `cloud-setups` 的发现结果转发至 STIX/MISP/Sigma/Splunk/Elastic/Slack/webhooks。请参阅 **[INTEGRATIONS.md](INTEGRATIONS.md)**。
## License
COCL v1.0 — 请参阅 [LICENSE](LICENSE)。标签:Azure, Bicep, ECS, Firebase, GCP, Terraform, 云计算, 应用安全, 脚手架, 规则引擎