云虚拟机安全部署
simple-deployment-on-vm
如何在不同云提供商的虚拟机上进行简单但安全的部署
- License 许可
- MIT
- 最近更新
- 2026-07-04
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- simple-deployment-on-vm
- tags
- [ "aws", "deploy", "security", "dns", "ec2", "tls configuration" ]
- license
- MIT
- metadata
- { "author": "Stakpak <team@stakpak.dev>", "version": "1.0.2" }
- description
- How to do simple but secure deployments using virtual machines on different cloud providers
03 SKILL.md 正文
Deploying applications with a simple but secure setup
Core Principles:
- avoid assumptions
- use only CLI tools
- avoid deleting any existing cloud resource, to not disrupt operations
Guidelines:
- use wait commands whenever possible instead of polling
- make sure to create and store SSH keys to access deployment machines/instances instead of passwords
- do not delete the SSH Keys you create otherwise you'd be locked out
- always try using CLI tools with default env vars before asking for credentials
Deployment Requirements:
1) Infrastructure
- prefer Virtual Machines over PaaS solutions
- ensure VMs are in public subnets with public IPs
- enable SSH access to VMs
- make sure to provision compute instances with the appropriate CPU and Memory requirements, otherwise you might not be able to run the app successfully
2) Networking:
-
configure domain names (if requested)
- add any DNS records needed yoruself when possible
-
if TLS is required
- use let's encrypt unless the user prefers other services
- DNS must be configured properly for let's encrypt to work
- use both ports 80 (HTTP), and 443 (HTTPS) to be able to pass let's encrypt http challenge
-
if using AWS
- remember to enable DNS hostnames and resolution (these must be enabled in a separate command after creating the VPC)
-
if using Cloudflare
- prefer using cloudflare in proxy mode to protect sites
3) Database (optional)
-
deploy appropriate database type and version when required
-
prefer managed database services in the cloud provider of choice
-
configure proper database credentials and connectivity
- make sure to set the correct application environment variables so the app can connect successfully to the database
- you must copy over the database password so it's accessible by the deployed application
-
credentials
- you MUST generate a random secure password (e.g. use openssl cli)
- store passwords in files, never print passwords in plain text
- the password should be at least 15 characters long
- some databases have restrictions on the character set allowed, so only use alphaneumeric characters
4) Quality Assurance
-
monitor resource readiness before proceeding with downstream dependencies
-
test application functionality
- you MUST check application logs to make sure there are no errors
- you MUST make a web request as a health check and get status code 200
-
make sure your deployments are secure and production-ready
Mandatory User Confirmation
- domain name configuration preferences
- TLS/HTTPS requirements
- database requirements and preferences
Success Criteria
- #1 Application is deployed and functional
- #2 All required services are properly configured
- #3 Deployment is production-ready
- #4 All credentials and access points are documented
04 同仓库更多 Skills
vLLM 高性能推理部署
vllm-deployment
部署 vLLM 以实现高性能 LLM 推理。涵盖 Docker 的 CPU/GPU 部署、云虚拟机配置以及 OpenAI 兼容的 API 端点。
Terrateam 配置与使用指南
terrateam-usage-guide
配置和使用 Terrateam 的综合指南。Terrateam 是一个用于 Terraform 和 OpenTofu 的开源 GitOps CI/CD 平台。涵盖配置文件结构、访问控制、工作流、OIDC 身份验证、漂移检测以及通过拉取请求(Pull Request)管理基础设施的最佳实践。
Next.js 应用 AWS 部署方案对比
nextjs-on-aws
本文档比较了 Next.js 应用的各种 AWS 部署方案,分析其成本、优势和局限性,并针对不同使用场景给出建议。
Bitnami 图表与镜像迁移至 Legacy
migrating-bitnami-to-bitnami-legacy
本规则手册帮助你将 Bitnami Helm charts(图表)和容器镜像从 bitnami 仓库迁移到 bitnamilegacy 仓库。 由于 Bitnami 的过渡调整(自 2025 年 8 月 28 日起生效),现有镜像将被移至 legacy 仓库,因此此次迁移十分必要。
K3s 集群备份与恢复
k3s-backup
面向 K3s 集群的备份与恢复方案。包括定时备份、关机前备份和手动备份策略,以及相应的恢复流程。
基础设施组件升级指南
infrastructure-software-upgrades
关于如何以可靠方式执行基础设施组件升级的通用指南。