cloudgov-deploy
Deploy applications to cloud.gov — sandbox setup, manifest generation, CI/CD pipeline
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Deploy applications to cloud.gov — sandbox setup, manifest generation, CI/CD pipeline
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Detect available credentials, diagnose gaps against PROJECT_PLAN.md, and guide setup for AI agents in any environment
Collect and verify all ATO submission artifacts into a review-ready package
Review AI-assisted code changes and create compliant pull requests with proper attribution
Create, validate, and index architectural and security decision records using MADR format with federal compliance extensions.
Run the 62-item federal pre-deployment security checklist against a codebase.
Initialize a code repository with federal security compliance defaults including .gitignore, pre-commit hooks, .editorconfig, and CI/CD security baseline.
| name | cloudgov-deploy |
| title | cloud.gov Deployment |
| description | Deploy applications to cloud.gov — sandbox setup, manifest generation, CI/CD pipeline |
| status | canonical |
| tier | 2 |
| last_updated | 2026-06-01 |
| load_priority | on-demand |
| audience | ["developers","agents"] |
| triggers | ["deploy","cloud.gov","cloudgov","push to cloud","deploy to sandbox"] |
| dependencies | ["project-bootstrap"] |
Deploy a federal application to cloud.gov — the FedRAMP-authorized platform available to all federal employees.
Guide the user through account creation:
# 1. Sign up at https://cloud.gov/sign-up/ with your .gov/.mil email
# 2. Install the CF CLI: https://docs.cloud.gov/platform/getting-started/quickstart-setup/
# 3. Login:
cf login -a api.fr.cloud.gov --sso
# 4. Visit the passcode URL shown, authenticate, paste the code
# 5. Target your sandbox:
cf target -o sandbox-<agency> -s <your-email-prefix>
Note: Sandbox contents are cleared every 90 days. For persistent deployments, the agency needs a cloud.gov organization.
Create a manifest.yml in the project root based on the tech stack from PROJECT_PLAN.md:
Python (FastAPI/Flask/Django):
---
applications:
- name: <project-name>
memory: 256M
instances: 1
buildpacks:
- python_buildpack
command: gunicorn app:app
env:
DISABLE_COLLECTSTATIC: 1
services: []
Node.js/TypeScript:
---
applications:
- name: <project-name>
memory: 256M
instances: 1
buildpacks:
- nodejs_buildpack
command: npm start
env:
NODE_ENV: production
services: []
Go:
---
applications:
- name: <project-name>
memory: 128M
instances: 1
buildpacks:
- go_buildpack
env:
GOVERSION: go1.22
services: []
Static site (Astro/Hugo/Jekyll):
---
applications:
- name: <project-name>
memory: 64M
instances: 1
buildpacks:
- staticfile_buildpack
path: dist/
Based on PROJECT_PLAN.md database choice:
# PostgreSQL
cf create-service aws-rds micro-psql <project-name>-db
# Then add to manifest.yml services list:
# services:
# - <project-name>-db
# S3 storage
cf create-service s3 basic <project-name>-s3
# Redis
cf create-service aws-elasticache-redis redis-dev <project-name>-redis
Services bind automatically via VCAP_SERVICES environment variable.
# From project root:
cf push
# Verify:
cf app <project-name>
curl https://<project-name>.app.cloud.gov/
Create .github/workflows/deploy.yml:
name: Deploy to cloud.gov
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install CF CLI
run: |
curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -xz
sudo mv cf8 /usr/local/bin/cf
- name: Deploy to cloud.gov
env:
CF_USERNAME: ${{ secrets.CF_USERNAME }}
CF_PASSWORD: ${{ secrets.CF_PASSWORD }}
CF_ORG: ${{ secrets.CF_ORG }}
CF_SPACE: ${{ secrets.CF_SPACE }}
run: |
cf login -a api.fr.cloud.gov -u "$CF_USERNAME" -p "$CF_PASSWORD" -o "$CF_ORG" -s "$CF_SPACE"
cf push
Required secrets: Set these in GitHub repo Settings → Secrets:
CF_USERNAME — cloud.gov service account usernameCF_PASSWORD — cloud.gov service account passwordCF_ORG — your cloud.gov organizationCF_SPACE — your cloud.gov spaceFor sandbox deployments, use personal credentials (not ideal for CI — sandbox is for prototyping).
# Check app status
cf app <project-name>
# View recent logs
cf logs <project-name> --recent
# Check all apps in space
cf apps
# Scale if needed (not available in sandbox)
# cf scale <project-name> -i 2 -m 512M
VCAP_SERVICES for database credentials, never hardcodeBy deploying to cloud.gov, your system inherits controls for:
Your app is still responsible for: application-level access control, input validation, secrets management, and business logic security. The AGENTS.md and CODING_PRACTICES.md cover these.
After deployment:
cf logs