icdev-deploy
Generate IaC (Terraform, Ansible, K8s) and GitLab CI/CD pipeline for AWS GovCloud deployment. Use when deploying or updating infrastructure on AWS GovCloud.
- License 许可
- Apache-2.0
- 所属仓库
- icdev-ai/icdev
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- icdev-deploy
- context
- fork
- description
- Generate IaC (Terraform, Ansible, K8s) and GitLab CI/CD pipeline for AWS GovCloud deployment. Use when deploying or updating infrastructure on AWS GovCloud.
- allowed-tools
- Bash, Read, Write, Edit, Glob, Grep
03 SKILL.md 正文
/icdev-deploy — Infrastructure & Deployment
Usage
/icdev-deploy <project-id> [--target staging|production] [--generate-only] [--modules vpc,ecr,rds,s3,iam]
What This Does
- Generates Terraform configurations for AWS GovCloud
- Generates Ansible playbooks for server configuration
- Generates Kubernetes manifests with security hardening
- Generates GitLab CI/CD pipeline (.gitlab-ci.yml)
- Optionally triggers deployment via CI/CD (requires approval for production)
Steps
1. Load Infrastructure Configuration
!cat args/project_defaults.yaml
!cat args/security_gates.yaml
2. Pre-Deployment Checks
Verify before generating IaC:
- All tests passing (check via run_tests)
- 0 CAT1 STIG findings (check via stig_check)
- No critical/high vulnerabilities
- SBOM is current
- CUI markings applied
3. Generate Terraform
Use the terraform_plan MCP tool from icdev-infra:
- project_id: from arguments
- modules: from
--modulesflag or default [vpc, ecr, rds] - Generates: provider.tf, variables.tf, main.tf for AWS GovCloud (us-gov-west-1)
4. Generate Ansible Playbooks
Use the ansible_run MCP tool from icdev-infra:
- project_id: from arguments
- playbook_type: "deploy"
- Generates deployment playbook with security hardening
5. Generate Kubernetes Manifests
Use the k8s_deploy MCP tool from icdev-infra:
- project_id: from arguments
- environment: from
--targetflag or default "staging" - Generates: Deployment, Service, ConfigMap, NetworkPolicy
- Security: non-root, read-only rootfs, resource limits
6. Generate CI/CD Pipeline
Use the pipeline_generate MCP tool from icdev-infra:
- project_id: from arguments
- stages: [lint, test, security-scan, build, compliance-check, deploy-staging, deploy-prod]
- Production deploy requires manual approval gate
7. Compliance Mapping
Use the control_map MCP tool from icdev-compliance:
- Map
deploy.stagingordeploy.productionto NIST controls (CM-3, CM-5, SA-10)
8. Output Summary
Display:
- Generated files (Terraform, Ansible, K8s, CI/CD)
- Target environment
- Security gates status
- Next steps:
- If
--generate-only: "Review and commit IaC files, push to trigger pipeline" - If deploying: "Pipeline triggered, monitor at <GitLab URL>"
- If
Example
/icdev-deploy abc123-uuid --target staging --modules vpc,ecr,rds
Error Handling
- If security gates fail: block deployment, show failing gates
- If Terraform module not available: generate basic configs manually
- Production deploy always requires explicit approval (terraform_apply approved=true)
04 同仓库更多 Skills
icdev
Work inside an ICDEV project from any coding harness -- the icdev-unified MCP tools, the `icdev` CLI, kanban claim/release, worktree-first branching, and where ICDEV's pre-tool guard lives. Use when a repo has CLAUDE.md/AGENTS.md naming ICDEV, a kanban task id (e.g. omx-dx-02), or you need an ICDEV tool.
icdev-worktree
Create and manage isolated git worktrees for parallel ICDEV™ task execution. Use when invoking /icdev-worktree.
icdev-test
Run the full test suite (pytest unit + behave BDD) with coverage reporting and compliance tracking. Use when validating code quality and coverage before a release.
icdev-status
Display comprehensive project status including compliance, security, deployment, and agent health. Use when checking overall project health or preparing a status report.
icdev-simulate
Run Digital Program Twin simulations and generate COAs for requirements. Use when simulating program scenarios or generating courses of action.
icdev-secure
Run comprehensive security scanning (SAST, dependency audit, secret detection, container scan). Use when scanning code or containers for security vulnerabilities before deployment.