agentic-dev 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/prd.json +29 -0
- package/.agent/progress.txt +1 -0
- package/.agent/prompt.md +21 -0
- package/.agent/ralph-loop-state.json +13 -0
- package/.agent/ralph-supervisor-state.json +12 -0
- package/.agent/ralph-supervisor.sh +238 -0
- package/.agent/ralph.sh +305 -0
- package/.agent/runs/README.md +7 -0
- package/.agent/sdd-build-ast-audit.json +13 -0
- package/.claude/CLAUDE.md +44 -0
- package/.claude/agentic-dev.json +3 -0
- package/.claude/agents/ai-dev.md +27 -0
- package/.claude/agents/backend-dev.md +26 -0
- package/.claude/agents/db-dev.md +26 -0
- package/.claude/agents/devops.md +27 -0
- package/.claude/agents/frontend-dev.md +25 -0
- package/.claude/agents/github-ops.md +25 -0
- package/.claude/agents/test-dev.md +26 -0
- package/.claude/agents/uiux-designer.md +25 -0
- package/.claude/settings.json +49 -0
- package/.claude/settings.local.json +8 -0
- package/.claude/skills/commit/SKILL.md +37 -0
- package/.claude/skills/dev-browser/SKILL.md +30 -0
- package/.claude/skills/otro/SKILL.md +43 -0
- package/.claude/skills/planning-with-files/SKILL.md +37 -0
- package/.claude/skills/prd/SKILL.md +27 -0
- package/.claude/skills/ralph-loop/SKILL.md +42 -0
- package/.claude/skills/sdd/SKILL.md +13 -0
- package/.claude/skills/sdd-dev/SKILL.md +71 -0
- package/.claude/skills/sdd-development/SKILL.md +13 -0
- package/.claude/workspace-config.json +3 -0
- package/.codex/agentic-dev.json +3 -0
- package/.codex/agents/README.md +22 -0
- package/.codex/agents/api.toml +11 -0
- package/.codex/agents/architecture.toml +11 -0
- package/.codex/agents/ci.toml +11 -0
- package/.codex/agents/gitops.toml +11 -0
- package/.codex/agents/orchestrator.toml +11 -0
- package/.codex/agents/quality.toml +11 -0
- package/.codex/agents/runtime.toml +11 -0
- package/.codex/agents/security.toml +11 -0
- package/.codex/agents/specs.toml +11 -0
- package/.codex/agents/ui.toml +11 -0
- package/.codex/config.toml +46 -0
- package/.codex/skills/SKILL.md +13 -0
- package/.codex/skills/agents/openai.yaml +4 -0
- package/.codex/skills/commit/SKILL.md +219 -0
- package/.codex/skills/commit/references/commit_examples.md +292 -0
- package/.codex/skills/dev-browser/SKILL.md +211 -0
- package/.codex/skills/dev-browser/bun.lock +443 -0
- package/.codex/skills/dev-browser/package-lock.json +2988 -0
- package/.codex/skills/dev-browser/package.json +31 -0
- package/.codex/skills/dev-browser/references/scraping.md +155 -0
- package/.codex/skills/dev-browser/scripts/start-relay.ts +32 -0
- package/.codex/skills/dev-browser/scripts/start-server.ts +117 -0
- package/.codex/skills/dev-browser/server.sh +24 -0
- package/.codex/skills/dev-browser/src/client.ts +474 -0
- package/.codex/skills/dev-browser/src/index.ts +287 -0
- package/.codex/skills/dev-browser/src/relay.ts +731 -0
- package/.codex/skills/dev-browser/src/snapshot/__tests__/snapshot.test.ts +223 -0
- package/.codex/skills/dev-browser/src/snapshot/browser-script.ts +877 -0
- package/.codex/skills/dev-browser/src/snapshot/index.ts +14 -0
- package/.codex/skills/dev-browser/src/snapshot/inject.ts +13 -0
- package/.codex/skills/dev-browser/src/types.ts +34 -0
- package/.codex/skills/dev-browser/tsconfig.json +36 -0
- package/.codex/skills/dev-browser/vitest.config.ts +12 -0
- package/.codex/skills/otro/SKILL.md +74 -0
- package/.codex/skills/otro/agents/openai.yaml +4 -0
- package/.codex/skills/otro/references/agent-prompts.md +61 -0
- package/.codex/skills/otro/references/contracts.md +146 -0
- package/.codex/skills/otro/references/orchestration-loop.md +51 -0
- package/.codex/skills/otro/references/runtime.md +79 -0
- package/.codex/skills/otro/runs/README.md +11 -0
- package/.codex/skills/otro/schemas/step_plan.schema.json +289 -0
- package/.codex/skills/otro/schemas/task_result.schema.json +142 -0
- package/.codex/skills/otro/schemas/wave_plan.schema.json +4 -0
- package/.codex/skills/otro/scripts/README.md +38 -0
- package/.codex/skills/otro/scripts/bump_validation_header.py +179 -0
- package/.codex/skills/otro/scripts/check_validation_header.py +84 -0
- package/.codex/skills/otro/scripts/common.py +303 -0
- package/.codex/skills/otro/scripts/init_run.sh +68 -0
- package/.codex/skills/otro/scripts/plan_loop.py +8 -0
- package/.codex/skills/otro/scripts/plan_step.py +367 -0
- package/.codex/skills/otro/scripts/plan_wave.py +8 -0
- package/.codex/skills/otro/scripts/reconcile_loop.py +8 -0
- package/.codex/skills/otro/scripts/reconcile_step.py +37 -0
- package/.codex/skills/otro/scripts/reconcile_wave.py +8 -0
- package/.codex/skills/otro/scripts/run_loop.py +300 -0
- package/.codex/skills/otro/scripts/run_loop_step.py +8 -0
- package/.codex/skills/otro/scripts/run_step.py +246 -0
- package/.codex/skills/otro/scripts/run_wave.py +8 -0
- package/.codex/skills/otro/validation/validation.md +15 -0
- package/.codex/skills/planning-with-files/SKILL.md +42 -0
- package/.codex/skills/planning-with-files/agents/openai.yaml +4 -0
- package/.codex/skills/planning-with-files/assets/plan-template.md +37 -0
- package/.codex/skills/planning-with-files/references/plan-rules.md +35 -0
- package/.codex/skills/planning-with-files/scripts/new_plan.sh +65 -0
- package/.codex/skills/prd/SKILL.md +235 -0
- package/.codex/skills/ralph-loop/SKILL.md +46 -0
- package/.codex/skills/ralph-loop/agents/openai.yaml +4 -0
- package/.codex/skills/ralph-loop/references/failure-triage.md +32 -0
- package/.codex/skills/ralph-loop/scripts/loop_until_success.sh +97 -0
- package/.codex/skills/sdd/SKILL.md +184 -0
- package/.codex/skills/sdd/agents/openai.yaml +4 -0
- package/.codex/skills/sdd/references/section-map.md +67 -0
- package/.dockerignore +8 -0
- package/.env.example +50 -0
- package/.gitignore +16 -0
- package/AGENTS.md +78 -0
- package/README.md +83 -47
- package/SDD_SKILL.md +589 -0
- package/bin/agentic-dev.mjs +97 -0
- package/client/admin/.dockerignore +3 -0
- package/client/admin/.env.example +1 -0
- package/client/admin/Dockerfile +16 -0
- package/client/admin/Dockerfile.dev +18 -0
- package/client/admin/README.md +20 -0
- package/client/admin/index.html +12 -0
- package/client/admin/package.json +41 -0
- package/client/admin/postcss.config.js +6 -0
- package/client/admin/scripts/ui-parity-admin-adapter.mjs +65 -0
- package/client/admin/src/api/alerts.ts +33 -0
- package/client/admin/src/api/client.ts +71 -0
- package/client/admin/src/api/orders.ts +33 -0
- package/client/admin/src/api/support.ts +11 -0
- package/client/admin/src/app/App.tsx +23 -0
- package/client/admin/src/auth/AuthProvider.tsx +122 -0
- package/client/admin/src/auth/ProtectedRoute.tsx +22 -0
- package/client/admin/src/auth/auth-client.ts +38 -0
- package/client/admin/src/auth/types.ts +18 -0
- package/client/admin/src/components/AdminNotificationsDrawer.tsx +162 -0
- package/client/admin/src/components/AdminShell.tsx +76 -0
- package/client/admin/src/components/ui/button.tsx +34 -0
- package/client/admin/src/components/ui/input.tsx +21 -0
- package/client/admin/src/lib/cn.ts +6 -0
- package/client/admin/src/lib/specRouteCatalog.json +30 -0
- package/client/admin/src/lib/specScreens.json +22 -0
- package/client/admin/src/main.tsx +17 -0
- package/client/admin/src/pages/AdminDashboardPage.tsx +171 -0
- package/client/admin/src/pages/AdminLoginPage.tsx +75 -0
- package/client/admin/src/pages/AdminQueuePage.tsx +107 -0
- package/client/admin/src/pages/AdminSupportPage.tsx +61 -0
- package/client/admin/src/styles/globals.css +17 -0
- package/client/admin/src/theme-vars.ts +18 -0
- package/client/admin/src/theme.ts +25 -0
- package/client/admin/src/vite-env.d.ts +1 -0
- package/client/admin/tailwind.config.js +8 -0
- package/client/admin/tsconfig.json +25 -0
- package/client/admin/vite.config.ts +12 -0
- package/client/landing/.dockerignore +3 -0
- package/client/landing/.env.example +1 -0
- package/client/landing/Dockerfile +16 -0
- package/client/landing/Dockerfile.dev +18 -0
- package/client/landing/README.md +18 -0
- package/client/landing/index.html +12 -0
- package/client/landing/package.json +41 -0
- package/client/landing/postcss.config.js +6 -0
- package/client/landing/scripts/ui-parity-landing-adapter.mjs +65 -0
- package/client/landing/src/App.tsx +21 -0
- package/client/landing/src/api/catalog.ts +30 -0
- package/client/landing/src/api/client.ts +30 -0
- package/client/landing/src/auth/AuthProvider.tsx +122 -0
- package/client/landing/src/auth/ProtectedRoute.tsx +22 -0
- package/client/landing/src/auth/auth-client.ts +38 -0
- package/client/landing/src/auth/types.ts +18 -0
- package/client/landing/src/components/LandingShell.tsx +34 -0
- package/client/landing/src/lib/specRouteCatalog.json +23 -0
- package/client/landing/src/lib/specScreens.json +17 -0
- package/client/landing/src/main.tsx +17 -0
- package/client/landing/src/pages/LandingHomePage.tsx +215 -0
- package/client/landing/src/pages/LandingLoginPage.tsx +90 -0
- package/client/landing/src/pages/LandingWorkspacePage.tsx +126 -0
- package/client/landing/src/styles/globals.css +17 -0
- package/client/landing/src/theme-vars.ts +16 -0
- package/client/landing/src/theme.ts +21 -0
- package/client/landing/src/vite-env.d.ts +1 -0
- package/client/landing/tailwind.config.js +8 -0
- package/client/landing/tsconfig.json +25 -0
- package/client/landing/vite.config.ts +12 -0
- package/client/mobile/.dockerignore +2 -0
- package/client/mobile/.env.example +1 -0
- package/client/mobile/Dockerfile +16 -0
- package/client/mobile/Dockerfile.dev +18 -0
- package/client/mobile/README.md +19 -0
- package/client/mobile/index.html +12 -0
- package/client/mobile/package.json +42 -0
- package/client/mobile/postcss.config.js +6 -0
- package/client/mobile/scripts/ui-parity-mobile-adapter.mjs +67 -0
- package/client/mobile/src/App.tsx +1 -0
- package/client/mobile/src/api/client.ts +62 -0
- package/client/mobile/src/api/fulfillment.ts +55 -0
- package/client/mobile/src/api/shipping.ts +56 -0
- package/client/mobile/src/app/App.tsx +23 -0
- package/client/mobile/src/auth/AuthProvider.tsx +122 -0
- package/client/mobile/src/auth/ProtectedRoute.tsx +27 -0
- package/client/mobile/src/auth/auth-client.ts +38 -0
- package/client/mobile/src/auth/types.ts +18 -0
- package/client/mobile/src/components/InShell.tsx +74 -0
- package/client/mobile/src/components/ui/button.tsx +35 -0
- package/client/mobile/src/components/ui/card.tsx +15 -0
- package/client/mobile/src/components/ui/input.tsx +21 -0
- package/client/mobile/src/lib/cn.ts +6 -0
- package/client/mobile/src/lib/specRouteCatalog.json +26 -0
- package/client/mobile/src/lib/specScreens.json +22 -0
- package/client/mobile/src/lib/useSpeechRecognitionInput.ts +271 -0
- package/client/mobile/src/main.tsx +17 -0
- package/client/mobile/src/pages/DashboardPage.tsx +172 -0
- package/client/mobile/src/pages/FulfillmentPage.tsx +138 -0
- package/client/mobile/src/pages/LoginPage.tsx +74 -0
- package/client/mobile/src/pages/ShippingPage.tsx +338 -0
- package/client/mobile/src/styles/globals.css +23 -0
- package/client/mobile/src/theme-vars.ts +16 -0
- package/client/mobile/src/theme.ts +21 -0
- package/client/mobile/src/vite-env.d.ts +1 -0
- package/client/mobile/tailwind.config.js +8 -0
- package/client/mobile/tsconfig.json +25 -0
- package/client/mobile/vite.config.ts +12 -0
- package/client/platform/.dockerignore +3 -0
- package/client/platform/.env.example +1 -0
- package/client/platform/Dockerfile +16 -0
- package/client/platform/Dockerfile.dev +18 -0
- package/client/platform/README.md +47 -0
- package/client/platform/index.html +12 -0
- package/client/platform/package.json +42 -0
- package/client/platform/postcss.config.js +6 -0
- package/client/platform/scripts/ui-parity-platform-adapter.mjs +66 -0
- package/client/platform/src/api/client.ts +30 -0
- package/client/platform/src/api/orders.ts +42 -0
- package/client/platform/src/app/App.tsx +21 -0
- package/client/platform/src/auth/AuthProvider.tsx +122 -0
- package/client/platform/src/auth/ProtectedRoute.tsx +22 -0
- package/client/platform/src/auth/auth-client.ts +38 -0
- package/client/platform/src/auth/types.ts +18 -0
- package/client/platform/src/components/AppShell.tsx +59 -0
- package/client/platform/src/components/ui/button.tsx +35 -0
- package/client/platform/src/components/ui/card.tsx +7 -0
- package/client/platform/src/components/ui/input.tsx +21 -0
- package/client/platform/src/lib/cn.ts +6 -0
- package/client/platform/src/lib/specRouteCatalog.json +23 -0
- package/client/platform/src/lib/specScreens.json +17 -0
- package/client/platform/src/main.tsx +17 -0
- package/client/platform/src/pages/DashboardPage.tsx +158 -0
- package/client/platform/src/pages/LoginPage.tsx +72 -0
- package/client/platform/src/pages/OrdersPage.tsx +123 -0
- package/client/platform/src/styles/globals.css +17 -0
- package/client/platform/src/theme-vars.ts +18 -0
- package/client/platform/src/theme.ts +25 -0
- package/client/platform/src/vite-env.d.ts +1 -0
- package/client/platform/tailwind.config.js +8 -0
- package/client/platform/tsconfig.json +25 -0
- package/client/platform/vite.config.ts +12 -0
- package/compose.yml +206 -0
- package/infra/compose/.env.dev.example +28 -0
- package/infra/compose/.env.prod.example +29 -0
- package/infra/compose/README.md +35 -0
- package/infra/compose/dev.yml +125 -0
- package/infra/compose/prod.yml +126 -0
- package/infra/terraform/README.md +34 -0
- package/infra/terraform/aws/data/.terraform.lock.hcl +25 -0
- package/infra/terraform/aws/data/README.md +18 -0
- package/infra/terraform/aws/data/main.tf +147 -0
- package/infra/terraform/aws/data/outputs.tf +14 -0
- package/infra/terraform/aws/data/variables.tf +57 -0
- package/infra/terraform/aws/data/versions.tf +10 -0
- package/infra/terraform/aws/domain/.terraform.lock.hcl +25 -0
- package/infra/terraform/aws/domain/README.md +20 -0
- package/infra/terraform/aws/domain/env/dev.tfvars.example +6 -0
- package/infra/terraform/aws/domain/env/prod.tfvars.example +7 -0
- package/infra/terraform/aws/domain/main.tf +149 -0
- package/infra/terraform/aws/domain/outputs.tf +29 -0
- package/infra/terraform/aws/domain/variables.tf +58 -0
- package/infra/terraform/aws/domain/versions.tf +10 -0
- package/infra/terraform/openstack/README.md +38 -0
- package/infra/terraform/openstack/dev/.terraform.lock.hcl +24 -0
- package/infra/terraform/openstack/dev/README.md +18 -0
- package/infra/terraform/openstack/dev/main.tf +49 -0
- package/infra/terraform/openstack/dev/providers.tf +15 -0
- package/infra/terraform/openstack/dev/terraform.tfvars.example +54 -0
- package/infra/terraform/openstack/dev/variables.tf +210 -0
- package/infra/terraform/openstack/dev/versions.tf +10 -0
- package/infra/terraform/openstack/modules/environment_host/main.tf +143 -0
- package/infra/terraform/openstack/modules/environment_host/outputs.tf +25 -0
- package/infra/terraform/openstack/modules/environment_host/templates/docker-host-user-data.sh.tftpl +40 -0
- package/infra/terraform/openstack/modules/environment_host/variables.tf +145 -0
- package/infra/terraform/openstack/modules/environment_host/versions.tf +7 -0
- package/infra/terraform/openstack/prod/.terraform.lock.hcl +24 -0
- package/infra/terraform/openstack/prod/README.md +18 -0
- package/infra/terraform/openstack/prod/main.tf +49 -0
- package/infra/terraform/openstack/prod/providers.tf +15 -0
- package/infra/terraform/openstack/prod/terraform.tfvars.example +55 -0
- package/infra/terraform/openstack/prod/variables.tf +210 -0
- package/infra/terraform/openstack/prod/versions.tf +10 -0
- package/infra/terraform/openstack/server/.terraform.lock.hcl +45 -0
- package/infra/terraform/openstack/server/README.md +47 -0
- package/infra/terraform/openstack/server/main.tf +161 -0
- package/infra/terraform/openstack/server/outputs.tf +30 -0
- package/infra/terraform/openstack/server/providers.tf +30 -0
- package/infra/terraform/openstack/server/templates/server-user-data.sh.tftpl +50 -0
- package/infra/terraform/openstack/server/variables.tf +233 -0
- package/infra/terraform/openstack/server/zz_aspace.auto.tfvars.example.json +29 -0
- package/lib/scaffold.mjs +373 -0
- package/package.json +33 -12
- package/pnpm-workspace.yaml +2 -0
- package/scripts/dev/audit_sdd_build_ast.py +277 -0
- package/sdd/01_planning/01_feature/INDEX.md +16 -0
- package/sdd/01_planning/01_feature/README.md +76 -0
- package/sdd/01_planning/01_feature/alerts_feature_spec.md +55 -0
- package/sdd/01_planning/01_feature/auth_feature_spec.md +57 -0
- package/sdd/01_planning/01_feature/catalog_feature_spec.md +61 -0
- package/sdd/01_planning/01_feature/fulfillment_feature_spec.md +58 -0
- package/sdd/01_planning/01_feature/health_feature_spec.md +52 -0
- package/sdd/01_planning/01_feature/inventory_feature_spec.md +60 -0
- package/sdd/01_planning/01_feature/order_feature_spec.md +63 -0
- package/sdd/01_planning/01_feature/shipping_feature_spec.md +55 -0
- package/sdd/01_planning/01_feature/support_feature_spec.md +53 -0
- package/sdd/01_planning/01_feature/user_feature_spec.md +54 -0
- package/sdd/01_planning/02_screen/INDEX.md +13 -0
- package/sdd/01_planning/02_screen/README.md +41 -0
- package/sdd/01_planning/02_screen/admin_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/assets/README.md +16 -0
- package/sdd/01_planning/02_screen/assets/example/README.md +13 -0
- package/sdd/01_planning/02_screen/landing_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/mobile_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/platform_screen_spec.pdf +0 -0
- package/sdd/01_planning/03_architecture/INDEX.md +9 -0
- package/sdd/01_planning/03_architecture/README.md +25 -0
- package/sdd/01_planning/03_architecture/architecture_document_structure.md +77 -0
- package/sdd/01_planning/03_architecture/backend/README.md +10 -0
- package/sdd/01_planning/03_architecture/frontend/README.md +12 -0
- package/sdd/01_planning/03_architecture/infra/README.md +10 -0
- package/sdd/01_planning/03_architecture/tech-research/README.md +4 -0
- package/sdd/01_planning/03_architecture/templates_system_architecture.md +84 -0
- package/sdd/01_planning/04_data/INDEX.md +4 -0
- package/sdd/01_planning/04_data/README.md +10 -0
- package/sdd/01_planning/04_data/templates_data_modeling.md +119 -0
- package/sdd/01_planning/05_api/README.md +12 -0
- package/sdd/01_planning/05_api/templates_api_contract.md +90 -0
- package/sdd/01_planning/06_iac/README.md +11 -0
- package/sdd/01_planning/06_iac/templates_runtime_and_cicd_baseline.md +46 -0
- package/sdd/01_planning/07_integration/README.md +11 -0
- package/sdd/01_planning/07_integration/templates_frontend_api_integration.md +46 -0
- package/sdd/01_planning/08_nonfunctional/README.md +7 -0
- package/sdd/01_planning/09_security/README.md +7 -0
- package/sdd/01_planning/10_test/README.md +12 -0
- package/sdd/01_planning/10_test/templates_test_strategy.md +60 -0
- package/sdd/01_planning/INDEX.md +19 -0
- package/sdd/01_planning/README.md +17 -0
- package/sdd/02_plan/01_feature/README.md +34 -0
- package/sdd/02_plan/01_feature/_feature_todo_template.md +29 -0
- package/sdd/02_plan/02_screen/INDEX.md +19 -0
- package/sdd/02_plan/02_screen/README.md +39 -0
- package/sdd/02_plan/02_screen/_screen_todo_template.md +60 -0
- package/sdd/02_plan/03_architecture/README.md +23 -0
- package/sdd/02_plan/03_architecture/architecture_document_governance.md +40 -0
- package/sdd/02_plan/03_architecture/build_ast_runtime_tree_governance.md +53 -0
- package/sdd/02_plan/03_architecture/repository_governance.md +39 -0
- package/sdd/02_plan/03_architecture/runtime_and_structure_governance.md +38 -0
- package/sdd/02_plan/03_architecture/templates-hexagonal-template-architecture.md +9 -0
- package/sdd/02_plan/03_architecture/toolchain_governance.md +98 -0
- package/sdd/02_plan/04_data/README.md +5 -0
- package/sdd/02_plan/05_api/README.md +5 -0
- package/sdd/02_plan/06_iac/README.md +11 -0
- package/sdd/02_plan/06_iac/dev_runtime_delivery.md +36 -0
- package/sdd/02_plan/06_iac/template_runtime_delivery.md +50 -0
- package/sdd/02_plan/07_integration/README.md +5 -0
- package/sdd/02_plan/07_integration/frontend_live_integration.md +31 -0
- package/sdd/02_plan/08_nonfunctional/README.md +5 -0
- package/sdd/02_plan/08_nonfunctional/repository_hygiene.md +26 -0
- package/sdd/02_plan/09_security/README.md +5 -0
- package/sdd/02_plan/10_test/README.md +11 -0
- package/sdd/02_plan/10_test/regression_verification.md +39 -0
- package/sdd/02_plan/10_test/templates/README.md +8 -0
- package/sdd/02_plan/10_test/templates/ui_parity_platform_contract.template.yaml +23 -0
- package/sdd/02_plan/10_test/verification_strategy.md +43 -0
- package/sdd/02_plan/99_generated/from_planning/ui_parity/.gitkeep +1 -0
- package/sdd/02_plan/README.md +40 -0
- package/sdd/03_build/01_feature/README.md +20 -0
- package/sdd/03_build/01_feature/domain/README.md +3 -0
- package/sdd/03_build/01_feature/domain/account_and_access.md +20 -0
- package/sdd/03_build/01_feature/domain/catalog_and_inventory.md +20 -0
- package/sdd/03_build/01_feature/domain/ordering_and_fulfillment.md +21 -0
- package/sdd/03_build/01_feature/domain/support_and_observability.md +21 -0
- package/sdd/03_build/01_feature/domain_surfaces.md +28 -0
- package/sdd/03_build/01_feature/service/README.md +3 -0
- package/sdd/03_build/01_feature/service/admin_surface.md +15 -0
- package/sdd/03_build/01_feature/service/landing_surface.md +13 -0
- package/sdd/03_build/01_feature/service/mobile_surface.md +14 -0
- package/sdd/03_build/01_feature/service/platform_surface.md +14 -0
- package/sdd/03_build/02_screen/README.md +25 -0
- package/sdd/03_build/02_screen/_screen_build_template.md +26 -0
- package/sdd/03_build/02_screen/admin/README.md +5 -0
- package/sdd/03_build/02_screen/landing/README.md +5 -0
- package/sdd/03_build/02_screen/mobile/README.md +5 -0
- package/sdd/03_build/02_screen/platform/README.md +5 -0
- package/sdd/03_build/03_architecture/README.md +10 -0
- package/sdd/03_build/03_architecture/architecture_document_governance.md +30 -0
- package/sdd/03_build/03_architecture/build_ast_runtime_tree_governance.md +24 -0
- package/sdd/03_build/03_architecture/repository_governance.md +18 -0
- package/sdd/03_build/03_architecture/toolchain_governance.md +36 -0
- package/sdd/03_build/06_iac/README.md +3 -0
- package/sdd/03_build/06_iac/dev_runtime_delivery.md +10 -0
- package/sdd/03_build/06_iac/template_runtime_delivery.md +49 -0
- package/sdd/03_build/07_integration/README.md +3 -0
- package/sdd/03_build/07_integration/frontend_live_integration.md +11 -0
- package/sdd/03_build/08_nonfunctional/README.md +3 -0
- package/sdd/03_build/08_nonfunctional/repository_hygiene.md +10 -0
- package/sdd/03_build/10_test/README.md +9 -0
- package/sdd/03_build/10_test/regression_verification.md +16 -0
- package/sdd/03_build/10_test/verification_harness.md +11 -0
- package/sdd/03_build/README.md +35 -0
- package/sdd/04_verify/01_feature/README.md +5 -0
- package/sdd/04_verify/01_feature/domain_verification.md +14 -0
- package/sdd/04_verify/01_feature/service_verification.md +22 -0
- package/sdd/04_verify/02_screen/README.md +6 -0
- package/sdd/04_verify/02_screen/_screen_verify_template.md +20 -0
- package/sdd/04_verify/02_screen/admin/README.md +4 -0
- package/sdd/04_verify/02_screen/landing/README.md +4 -0
- package/sdd/04_verify/02_screen/mobile/README.md +4 -0
- package/sdd/04_verify/02_screen/platform/README.md +4 -0
- package/sdd/04_verify/03_architecture/README.md +10 -0
- package/sdd/04_verify/03_architecture/architecture_document_governance.md +15 -0
- package/sdd/04_verify/03_architecture/build_ast_runtime_tree_governance.md +28 -0
- package/sdd/04_verify/03_architecture/repository_governance.md +16 -0
- package/sdd/04_verify/03_architecture/toolchain_governance.md +58 -0
- package/sdd/04_verify/06_iac/README.md +3 -0
- package/sdd/04_verify/06_iac/dev_runtime_delivery.md +10 -0
- package/sdd/04_verify/06_iac/template_runtime_delivery.md +42 -0
- package/sdd/04_verify/07_integration/README.md +3 -0
- package/sdd/04_verify/07_integration/frontend_live_integration.md +16 -0
- package/sdd/04_verify/08_nonfunctional/README.md +3 -0
- package/sdd/04_verify/08_nonfunctional/repository_hygiene.md +14 -0
- package/sdd/04_verify/10_test/README.md +9 -0
- package/sdd/04_verify/10_test/regression_verification.md +16 -0
- package/sdd/04_verify/10_test/ui_parity/README.md +4 -0
- package/sdd/04_verify/10_test/ui_parity/loop_runs/.gitkeep +0 -0
- package/sdd/04_verify/10_test/ui_parity/reference/.gitkeep +0 -0
- package/sdd/04_verify/10_test/ui_parity/staged_runs/.gitkeep +0 -0
- package/sdd/04_verify/10_test/verification_harness.md +17 -0
- package/sdd/04_verify/README.md +22 -0
- package/sdd/05_operate/01_runbooks/.gitkeep +1 -0
- package/sdd/05_operate/01_runbooks/README.md +4 -0
- package/sdd/05_operate/02_delivery_status/README.md +4 -0
- package/sdd/05_operate/02_delivery_status/service_status.md +16 -0
- package/sdd/05_operate/README.md +12 -0
- package/sdd/99_toolchain/01_automation/.gitkeep +1 -0
- package/sdd/99_toolchain/01_automation/README.md +76 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_proof_results.py +132 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_route_gap.py +85 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/assets/repo-contract.template.json +75 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh +84 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh +33 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/init_repo_contract.sh +51 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json +76 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_frontend_target.py +52 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_repo_contract.py +56 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh +100 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/run_repo_phase.sh +140 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/validate_json_schema.py +39 -0
- package/sdd/99_toolchain/01_automation/agentic-parity-harness-design.md +291 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/queue.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/support.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/home.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/workspace.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/fulfillment.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/orders.png +0 -0
- package/sdd/99_toolchain/01_automation/build_asset_recipes.py +10 -0
- package/sdd/99_toolchain/01_automation/build_screen_spec_pdf.py +427 -0
- package/sdd/99_toolchain/01_automation/capture_screen_assets.mjs +148 -0
- package/sdd/99_toolchain/01_automation/harness-layout.md +34 -0
- package/sdd/99_toolchain/01_automation/parity-execution-tooling-design.md +319 -0
- package/sdd/99_toolchain/01_automation/playwright_exactness_manifest.py +21 -0
- package/sdd/99_toolchain/01_automation/run_playwright_exactness.py +87 -0
- package/sdd/99_toolchain/01_automation/screen_spec_manifest.py +321 -0
- package/sdd/99_toolchain/01_automation/spec_asset_builder.py +274 -0
- package/sdd/99_toolchain/01_automation/ui-contract-projection.md +79 -0
- package/sdd/99_toolchain/01_automation/ui-parity/README.md +60 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/extract-reference-pages.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/materialize-reference-assets.mjs +58 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/normalize-reference-assets.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/route-gap-report.mjs +187 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/run-proof.mjs +50 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs +62 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/upload-parity1.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/collector-metadata.schema.json +33 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/proof-result.schema.json +76 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/route-gap-report.schema.json +95 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/capture-runner.mjs +55 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-adapter.mjs +25 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-contract.mjs +81 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/paths.mjs +23 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/proof-runner.mjs +255 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-artifact-layout.md +23 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-proof-interface.md +60 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-route-gap-interface.md +82 -0
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/playwright-runtime.mjs +16 -0
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/static-runtime.mjs +6 -0
- package/sdd/99_toolchain/02_policies/.gitkeep +1 -0
- package/sdd/99_toolchain/02_policies/build-ast-governance-policy.md +22 -0
- package/sdd/99_toolchain/02_policies/compose-runtime-baseline-policy.md +24 -0
- package/sdd/99_toolchain/02_policies/convention-storage-policy.md +26 -0
- package/sdd/99_toolchain/02_policies/main-push-before-dev-deploy-policy.md +27 -0
- package/sdd/99_toolchain/02_policies/otro-orchestration-policy.md +30 -0
- package/sdd/99_toolchain/02_policies/regression-verification-policy.md +22 -0
- package/sdd/99_toolchain/03_templates/.gitkeep +1 -0
- package/sdd/99_toolchain/03_templates/asset_recipe_manifest.example.py +38 -0
- package/sdd/99_toolchain/03_templates/generated_assets/README.md +11 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-lockup.svg +3 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-mark.svg +3 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-wordmark.svg +3 -0
- package/sdd/99_toolchain/03_templates/playwright_exactness_manifest.example.py +21 -0
- package/sdd/99_toolchain/README.md +23 -0
- package/sdd/README.md +21 -0
- package/server/.dockerignore +4 -0
- package/server/.env.example +19 -0
- package/server/Dockerfile +22 -0
- package/server/Dockerfile.dev +19 -0
- package/server/README.md +33 -0
- package/server/__init__.py +0 -0
- package/server/api/__init__.py +1 -0
- package/server/api/http/__init__.py +4 -0
- package/server/api/http/app.py +53 -0
- package/server/api/http/router.py +24 -0
- package/server/config.py +52 -0
- package/server/contexts/__init__.py +12 -0
- package/server/contexts/alerts/__init__.py +1 -0
- package/server/contexts/alerts/application/__init__.py +13 -0
- package/server/contexts/alerts/application/services.py +41 -0
- package/server/contexts/alerts/contracts/__init__.py +3 -0
- package/server/contexts/alerts/contracts/http/__init__.py +3 -0
- package/server/contexts/alerts/contracts/http/router.py +37 -0
- package/server/contexts/alerts/domain/__init__.py +15 -0
- package/server/contexts/alerts/domain/models.py +29 -0
- package/server/contexts/alerts/infrastructure/__init__.py +11 -0
- package/server/contexts/alerts/infrastructure/repository.py +41 -0
- package/server/contexts/auth/__init__.py +1 -0
- package/server/contexts/auth/application/__init__.py +3 -0
- package/server/contexts/auth/application/ports.py +10 -0
- package/server/contexts/auth/application/services.py +64 -0
- package/server/contexts/auth/contracts/__init__.py +4 -0
- package/server/contexts/auth/contracts/http/__init__.py +4 -0
- package/server/contexts/auth/contracts/http/dependencies.py +37 -0
- package/server/contexts/auth/contracts/http/router.py +19 -0
- package/server/contexts/auth/domain/__init__.py +3 -0
- package/server/contexts/auth/domain/models.py +24 -0
- package/server/contexts/auth/infrastructure/__init__.py +4 -0
- package/server/contexts/auth/infrastructure/adapters/memory.py +19 -0
- package/server/contexts/auth/infrastructure/adapters/mongodb.py +24 -0
- package/server/contexts/auth/infrastructure/adapters/sqlalchemy.py +74 -0
- package/server/contexts/auth/infrastructure/repository.py +28 -0
- package/server/contexts/catalog/__init__.py +1 -0
- package/server/contexts/catalog/application/__init__.py +28 -0
- package/server/contexts/catalog/application/ports.py +15 -0
- package/server/contexts/catalog/application/services.py +154 -0
- package/server/contexts/catalog/contracts/__init__.py +3 -0
- package/server/contexts/catalog/contracts/http/__init__.py +3 -0
- package/server/contexts/catalog/contracts/http/router.py +60 -0
- package/server/contexts/catalog/domain/__init__.py +45 -0
- package/server/contexts/catalog/domain/models.py +113 -0
- package/server/contexts/catalog/infrastructure/__init__.py +4 -0
- package/server/contexts/catalog/infrastructure/adapters/memory.py +62 -0
- package/server/contexts/catalog/infrastructure/repository.py +8 -0
- package/server/contexts/fulfillment/__init__.py +1 -0
- package/server/contexts/fulfillment/application/__init__.py +13 -0
- package/server/contexts/fulfillment/application/ports.py +20 -0
- package/server/contexts/fulfillment/application/services.py +85 -0
- package/server/contexts/fulfillment/contracts/__init__.py +3 -0
- package/server/contexts/fulfillment/contracts/http/__init__.py +3 -0
- package/server/contexts/fulfillment/contracts/http/router.py +40 -0
- package/server/contexts/fulfillment/domain/__init__.py +25 -0
- package/server/contexts/fulfillment/domain/models.py +73 -0
- package/server/contexts/fulfillment/infrastructure/__init__.py +13 -0
- package/server/contexts/fulfillment/infrastructure/adapters/memory.py +43 -0
- package/server/contexts/fulfillment/infrastructure/repository.py +97 -0
- package/server/contexts/health/__init__.py +1 -0
- package/server/contexts/health/application/__init__.py +3 -0
- package/server/contexts/health/application/services.py +2 -0
- package/server/contexts/health/contracts/__init__.py +3 -0
- package/server/contexts/health/contracts/http/__init__.py +3 -0
- package/server/contexts/health/contracts/http/router.py +10 -0
- package/server/contexts/inventory/__init__.py +1 -0
- package/server/contexts/inventory/application/__init__.py +28 -0
- package/server/contexts/inventory/application/ports.py +11 -0
- package/server/contexts/inventory/application/services.py +214 -0
- package/server/contexts/inventory/contracts/__init__.py +3 -0
- package/server/contexts/inventory/contracts/http/__init__.py +3 -0
- package/server/contexts/inventory/contracts/http/router.py +82 -0
- package/server/contexts/inventory/domain/__init__.py +33 -0
- package/server/contexts/inventory/domain/models.py +93 -0
- package/server/contexts/inventory/infrastructure/__init__.py +4 -0
- package/server/contexts/inventory/infrastructure/adapters/memory.py +24 -0
- package/server/contexts/inventory/infrastructure/repository.py +8 -0
- package/server/contexts/orders/__init__.py +1 -0
- package/server/contexts/orders/application/__init__.py +19 -0
- package/server/contexts/orders/application/services.py +127 -0
- package/server/contexts/orders/contracts/__init__.py +3 -0
- package/server/contexts/orders/contracts/http/__init__.py +3 -0
- package/server/contexts/orders/contracts/http/router.py +82 -0
- package/server/contexts/orders/domain/__init__.py +29 -0
- package/server/contexts/orders/domain/models.py +95 -0
- package/server/contexts/orders/infrastructure/__init__.py +7 -0
- package/server/contexts/orders/infrastructure/repository.py +104 -0
- package/server/contexts/shipping/__init__.py +1 -0
- package/server/contexts/shipping/application/__init__.py +13 -0
- package/server/contexts/shipping/application/services.py +92 -0
- package/server/contexts/shipping/contracts/__init__.py +3 -0
- package/server/contexts/shipping/contracts/http/__init__.py +3 -0
- package/server/contexts/shipping/contracts/http/router.py +40 -0
- package/server/contexts/shipping/domain/__init__.py +19 -0
- package/server/contexts/shipping/domain/models.py +48 -0
- package/server/contexts/shipping/infrastructure/__init__.py +9 -0
- package/server/contexts/shipping/infrastructure/repository.py +50 -0
- package/server/contexts/support/__init__.py +1 -0
- package/server/contexts/support/application/__init__.py +13 -0
- package/server/contexts/support/application/services.py +29 -0
- package/server/contexts/support/contracts/__init__.py +3 -0
- package/server/contexts/support/contracts/http/__init__.py +3 -0
- package/server/contexts/support/contracts/http/router.py +40 -0
- package/server/contexts/support/domain/__init__.py +13 -0
- package/server/contexts/support/domain/models.py +27 -0
- package/server/contexts/support/infrastructure/__init__.py +11 -0
- package/server/contexts/support/infrastructure/repository.py +70 -0
- package/server/contexts/user/__init__.py +1 -0
- package/server/contexts/user/application/__init__.py +3 -0
- package/server/contexts/user/application/ports.py +11 -0
- package/server/contexts/user/application/services.py +44 -0
- package/server/contexts/user/contracts/__init__.py +3 -0
- package/server/contexts/user/contracts/http/__init__.py +3 -0
- package/server/contexts/user/contracts/http/router.py +26 -0
- package/server/contexts/user/domain/__init__.py +3 -0
- package/server/contexts/user/domain/models.py +22 -0
- package/server/contexts/user/infrastructure/__init__.py +3 -0
- package/server/contexts/user/infrastructure/adapters/memory.py +27 -0
- package/server/contexts/user/infrastructure/adapters/mongodb.py +41 -0
- package/server/contexts/user/infrastructure/adapters/sqlalchemy.py +94 -0
- package/server/contexts/user/infrastructure/factory.py +28 -0
- package/server/data/README.md +24 -0
- package/server/data/bootstrap/alerts.json +38 -0
- package/server/data/bootstrap/auth_accounts.json +18 -0
- package/server/data/bootstrap/catalog_products.json +179 -0
- package/server/data/bootstrap/fulfillment_events.json +5 -0
- package/server/data/bootstrap/fulfillment_notes.json +5 -0
- package/server/data/bootstrap/fulfillment_tasks.json +50 -0
- package/server/data/bootstrap/inventory_levels.json +80 -0
- package/server/data/bootstrap/orders.json +62 -0
- package/server/data/bootstrap/shipping_shipments.json +50 -0
- package/server/data/bootstrap/support_faqs.json +26 -0
- package/server/data/bootstrap/users.json +20 -0
- package/server/data/bootstrap_loader.py +15 -0
- package/server/docker-entrypoint.sh +56 -0
- package/server/main.py +3 -0
- package/server/pyproject.toml +36 -0
- package/server/shared/__init__.py +1 -0
- package/server/shared/application/__init__.py +3 -0
- package/server/shared/application/health.py +2 -0
- package/server/shared/infrastructure/__init__.py +10 -0
- package/server/shared/infrastructure/runtime.py +6 -0
- package/server/shared/infrastructure/security.py +33 -0
- package/server/tests/e2e/test_domain_feature_flows.py +483 -0
- package/server/tests/test_health.py +49 -0
- package/server/uv.lock +1169 -0
- package/bin/agentic-dev.js +0 -9
- package/src/cli.js +0 -37
- package/src/init-command.js +0 -230
- package/src/lib/command.js +0 -14
- package/src/lib/fs.js +0 -92
- package/src/lib/git.js +0 -57
- package/src/lib/github.js +0 -77
- package/src/lib/prompt.js +0 -52
- package/src/lib/system.js +0 -15
- package/src/lib/template.js +0 -143
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
provider "aws" {
|
|
2
|
+
region = var.aws_region
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
provider "aws" {
|
|
6
|
+
alias = "us_east_1"
|
|
7
|
+
region = "us-east-1"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
locals {
|
|
11
|
+
phase = lower(var.phase)
|
|
12
|
+
root_domain = lower(trimspace(var.root_domain))
|
|
13
|
+
service_fqdn = lower(
|
|
14
|
+
trimspace(var.service_fqdn) != ""
|
|
15
|
+
? var.service_fqdn
|
|
16
|
+
: (local.phase == "prod" ? local.root_domain : "dev.${local.root_domain}")
|
|
17
|
+
)
|
|
18
|
+
origin_fqdn = "origin.${local.service_fqdn}"
|
|
19
|
+
origin_id = replace(local.origin_fqdn, ".", "-")
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
data "aws_route53_zone" "root" {
|
|
23
|
+
name = "${local.root_domain}."
|
|
24
|
+
private_zone = false
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
resource "aws_route53_record" "origin_a" {
|
|
28
|
+
count = var.enabled ? 1 : 0
|
|
29
|
+
zone_id = data.aws_route53_zone.root.zone_id
|
|
30
|
+
name = local.origin_fqdn
|
|
31
|
+
type = "A"
|
|
32
|
+
ttl = var.ttl
|
|
33
|
+
records = [var.target_ip]
|
|
34
|
+
|
|
35
|
+
allow_overwrite = true
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
resource "aws_acm_certificate" "service" {
|
|
39
|
+
count = var.enabled && var.cdn_enabled ? 1 : 0
|
|
40
|
+
provider = aws.us_east_1
|
|
41
|
+
domain_name = local.service_fqdn
|
|
42
|
+
validation_method = "DNS"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
resource "aws_route53_record" "cert_validation" {
|
|
46
|
+
for_each = var.enabled && var.cdn_enabled ? {
|
|
47
|
+
for dvo in aws_acm_certificate.service[0].domain_validation_options : dvo.domain_name => {
|
|
48
|
+
name = dvo.resource_record_name
|
|
49
|
+
record = dvo.resource_record_value
|
|
50
|
+
type = dvo.resource_record_type
|
|
51
|
+
}
|
|
52
|
+
} : {}
|
|
53
|
+
|
|
54
|
+
zone_id = data.aws_route53_zone.root.zone_id
|
|
55
|
+
name = each.value.name
|
|
56
|
+
type = each.value.type
|
|
57
|
+
ttl = 60
|
|
58
|
+
records = [each.value.record]
|
|
59
|
+
|
|
60
|
+
allow_overwrite = true
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
resource "aws_acm_certificate_validation" "service" {
|
|
64
|
+
count = var.enabled && var.cdn_enabled ? 1 : 0
|
|
65
|
+
provider = aws.us_east_1
|
|
66
|
+
certificate_arn = aws_acm_certificate.service[0].arn
|
|
67
|
+
validation_record_fqdns = [for row in aws_route53_record.cert_validation : row.fqdn]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
resource "aws_cloudfront_distribution" "service" {
|
|
71
|
+
count = var.enabled && var.cdn_enabled ? 1 : 0
|
|
72
|
+
enabled = true
|
|
73
|
+
is_ipv6_enabled = true
|
|
74
|
+
price_class = var.cdn_price_class
|
|
75
|
+
comment = "template edge for ${local.service_fqdn}"
|
|
76
|
+
aliases = [local.service_fqdn]
|
|
77
|
+
|
|
78
|
+
origin {
|
|
79
|
+
domain_name = local.origin_fqdn
|
|
80
|
+
origin_id = local.origin_id
|
|
81
|
+
|
|
82
|
+
custom_origin_config {
|
|
83
|
+
http_port = var.origin_port
|
|
84
|
+
https_port = 443
|
|
85
|
+
origin_protocol_policy = "http-only"
|
|
86
|
+
origin_ssl_protocols = ["TLSv1.2"]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
default_cache_behavior {
|
|
91
|
+
target_origin_id = local.origin_id
|
|
92
|
+
viewer_protocol_policy = "redirect-to-https"
|
|
93
|
+
compress = true
|
|
94
|
+
allowed_methods = ["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
|
|
95
|
+
cached_methods = ["GET", "HEAD", "OPTIONS"]
|
|
96
|
+
|
|
97
|
+
forwarded_values {
|
|
98
|
+
query_string = true
|
|
99
|
+
headers = ["*"]
|
|
100
|
+
|
|
101
|
+
cookies {
|
|
102
|
+
forward = "all"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
restrictions {
|
|
108
|
+
geo_restriction {
|
|
109
|
+
restriction_type = "none"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
viewer_certificate {
|
|
114
|
+
acm_certificate_arn = aws_acm_certificate_validation.service[0].certificate_arn
|
|
115
|
+
ssl_support_method = "sni-only"
|
|
116
|
+
minimum_protocol_version = "TLSv1.2_2021"
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
depends_on = [
|
|
120
|
+
aws_route53_record.origin_a,
|
|
121
|
+
aws_acm_certificate_validation.service,
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
resource "aws_route53_record" "service_alias" {
|
|
126
|
+
count = var.enabled && var.cdn_enabled ? 1 : 0
|
|
127
|
+
zone_id = data.aws_route53_zone.root.zone_id
|
|
128
|
+
name = local.service_fqdn
|
|
129
|
+
type = "A"
|
|
130
|
+
|
|
131
|
+
alias {
|
|
132
|
+
name = aws_cloudfront_distribution.service[0].domain_name
|
|
133
|
+
zone_id = aws_cloudfront_distribution.service[0].hosted_zone_id
|
|
134
|
+
evaluate_target_health = false
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
allow_overwrite = true
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
resource "aws_route53_record" "service_a" {
|
|
141
|
+
count = var.enabled && !var.cdn_enabled ? 1 : 0
|
|
142
|
+
zone_id = data.aws_route53_zone.root.zone_id
|
|
143
|
+
name = local.service_fqdn
|
|
144
|
+
type = "A"
|
|
145
|
+
ttl = var.ttl
|
|
146
|
+
records = [var.target_ip]
|
|
147
|
+
|
|
148
|
+
allow_overwrite = true
|
|
149
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
output "service_fqdn" {
|
|
2
|
+
value = local.service_fqdn
|
|
3
|
+
description = "Managed public service domain."
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
output "origin_fqdn" {
|
|
7
|
+
value = local.origin_fqdn
|
|
8
|
+
description = "Origin DNS name that points to the OpenStack backend."
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
output "origin_url" {
|
|
12
|
+
value = "http://${local.origin_fqdn}:${var.origin_port}"
|
|
13
|
+
description = "Origin URL that CloudFront points to."
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
output "root_domain" {
|
|
17
|
+
value = local.root_domain
|
|
18
|
+
description = "Resolved root domain."
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
output "cloudfront_domain_name" {
|
|
22
|
+
value = var.cdn_enabled ? aws_cloudfront_distribution.service[0].domain_name : ""
|
|
23
|
+
description = "CloudFront distribution domain."
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
output "cloudfront_distribution_id" {
|
|
27
|
+
value = var.cdn_enabled ? aws_cloudfront_distribution.service[0].id : ""
|
|
28
|
+
description = "CloudFront distribution id."
|
|
29
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
variable "phase" {
|
|
2
|
+
type = string
|
|
3
|
+
description = "Deployment phase."
|
|
4
|
+
default = "dev"
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
variable "root_domain" {
|
|
8
|
+
type = string
|
|
9
|
+
description = "Hosted zone root domain."
|
|
10
|
+
default = "example.com"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
variable "service_fqdn" {
|
|
14
|
+
type = string
|
|
15
|
+
description = "Optional explicit final service domain."
|
|
16
|
+
default = ""
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
variable "aws_region" {
|
|
20
|
+
type = string
|
|
21
|
+
description = "AWS region for Route53 and general provider calls."
|
|
22
|
+
default = "ap-northeast-2"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
variable "target_ip" {
|
|
26
|
+
type = string
|
|
27
|
+
description = "Origin target IPv4."
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
variable "origin_port" {
|
|
31
|
+
type = number
|
|
32
|
+
description = "Origin backend port."
|
|
33
|
+
default = 8080
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
variable "ttl" {
|
|
37
|
+
type = number
|
|
38
|
+
description = "DNS TTL."
|
|
39
|
+
default = 60
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
variable "enabled" {
|
|
43
|
+
type = bool
|
|
44
|
+
description = "Enable record management."
|
|
45
|
+
default = true
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
variable "cdn_enabled" {
|
|
49
|
+
type = bool
|
|
50
|
+
description = "Enable CloudFront distribution and alias record."
|
|
51
|
+
default = true
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
variable "cdn_price_class" {
|
|
55
|
+
type = string
|
|
56
|
+
description = "CloudFront price class."
|
|
57
|
+
default = "PriceClass_200"
|
|
58
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# OpenStack Terraform
|
|
2
|
+
|
|
3
|
+
OpenStack provider는 공용 축으로 두되, canonical compute baseline은 `server/` root를 우선한다.
|
|
4
|
+
|
|
5
|
+
구조:
|
|
6
|
+
|
|
7
|
+
- `modules/environment_host`: OpenStack Docker host 공통 module
|
|
8
|
+
- `server/`: Aspace/OpenStack backend compute canonical root
|
|
9
|
+
- `dev/`: DEV(개발계)용 Terraform root
|
|
10
|
+
- `prod/`: PROD용 Terraform root
|
|
11
|
+
|
|
12
|
+
원칙:
|
|
13
|
+
|
|
14
|
+
- canonical delivery split에서는 `openstack/server`가 backend compute를 담당하고, `aws/domain`과 `aws/data`가 외곽 surface를 담당한다.
|
|
15
|
+
- DEV(개발계)와 PROD는 state를 분리한다.
|
|
16
|
+
- compose 자동 기동이 필요하면 각 환경 root의 `compose_env_content`에 대응 환경의 `.env` 전체를 넣는다.
|
|
17
|
+
- 네트워크를 공유하려면 `create_network=false`와 `network_id`/`subnet_id`를 사용한다.
|
|
18
|
+
|
|
19
|
+
사용:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cd infra/terraform/openstack/server
|
|
23
|
+
cp zz_aspace.auto.tfvars.example.json zz_aspace.auto.tfvars.json
|
|
24
|
+
terraform init -backend=false
|
|
25
|
+
terraform validate
|
|
26
|
+
|
|
27
|
+
cd infra/terraform/openstack/dev
|
|
28
|
+
cp terraform.tfvars.example terraform.tfvars
|
|
29
|
+
terraform init
|
|
30
|
+
terraform validate
|
|
31
|
+
terraform plan
|
|
32
|
+
|
|
33
|
+
cd ../prod
|
|
34
|
+
cp terraform.tfvars.example terraform.tfvars
|
|
35
|
+
terraform init
|
|
36
|
+
terraform validate
|
|
37
|
+
terraform plan
|
|
38
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file is maintained automatically by "terraform init".
|
|
2
|
+
# Manual edits may be lost in future updates.
|
|
3
|
+
|
|
4
|
+
provider "registry.terraform.io/terraform-provider-openstack/openstack" {
|
|
5
|
+
version = "2.1.0"
|
|
6
|
+
constraints = "~> 2.1"
|
|
7
|
+
hashes = [
|
|
8
|
+
"h1:2TcmfEzBOGQPALErrXTaL6v+k/WAL40adao4izRYmdw=",
|
|
9
|
+
"zh:113661750398bf21c8fe36aade9fb6f5eb82b5bcd3bcd30bd37ac805d83398f4",
|
|
10
|
+
"zh:1b3c26347b9cd61e413ee93c2f422cc3278a77f55fd3516eaabb3e2a85f65281",
|
|
11
|
+
"zh:1b751bbf1e4152829a643b532fd3f5967a2e89a41fac381257e0b41665be3306",
|
|
12
|
+
"zh:1b967bbfd9b344419c0e0df0c3a15fcbd731e91f19a18955a55aace8d9ec039a",
|
|
13
|
+
"zh:1bc0fc7c0a21e568db043b654501ce668ba19bf7628d37a7d2aaa512fd6e5aeb",
|
|
14
|
+
"zh:425cbf61757d4b503e7bf0f409ea59835ca3afbd2432d56ad552c2e5d234a572",
|
|
15
|
+
"zh:67d4f059cb4d73bf6c060313ec32962c4e5bd8dc7be2542a6f2098ab32575cd9",
|
|
16
|
+
"zh:7fe841ac5b68a4f52fb3cf45070828f3845de44746679d434e4349f3c23e3ef2",
|
|
17
|
+
"zh:ac1ed4c6ef0b6a3410568a05d3f9933d184497f065988503c43da0b2f0786ab2",
|
|
18
|
+
"zh:c5c0d14c86fabd9ab6a5d555e6a8d511942665fb5fa948dd452b0d1934068344",
|
|
19
|
+
"zh:c9ae5c210192275185d6823566a9421983e8e64c2665a4cae00b92dd0706bd19",
|
|
20
|
+
"zh:ee9865ccc053e7f345e532654fb628d1cf1e81cd2e929643c1691bebffcf7b98",
|
|
21
|
+
"zh:f3416d2f666095e740522c4964e436470bb9ec17bd53aaae8169ad93297d07bd",
|
|
22
|
+
"zh:fbca85457dd49e17168989d64f7cfc4a519d55ef4e00e89cea2859e87ad87f83",
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# OpenStack DEV
|
|
2
|
+
|
|
3
|
+
DEV(개발계) 전용 Terraform root다.
|
|
4
|
+
|
|
5
|
+
사용:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
cd infra/terraform/openstack/dev
|
|
9
|
+
cp terraform.tfvars.example terraform.tfvars
|
|
10
|
+
terraform init
|
|
11
|
+
terraform validate
|
|
12
|
+
terraform plan
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
메모:
|
|
16
|
+
|
|
17
|
+
- 기본 compose 파일은 `infra/compose/dev.yml`이다.
|
|
18
|
+
- cloud-init 자동 기동을 쓰려면 `compose_env_content`에 `infra/compose/.env.dev` 전체를 넣는다.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module "environment_host" {
|
|
2
|
+
source = "../modules/environment_host"
|
|
3
|
+
|
|
4
|
+
availability_zone = var.availability_zone
|
|
5
|
+
create_network = var.create_network
|
|
6
|
+
network_name = var.network_name
|
|
7
|
+
subnet_name = var.subnet_name
|
|
8
|
+
subnet_cidr = var.subnet_cidr
|
|
9
|
+
create_router = var.create_router
|
|
10
|
+
router_name = var.router_name
|
|
11
|
+
external_network_id = var.external_network_id
|
|
12
|
+
network_id = var.network_id
|
|
13
|
+
subnet_id = var.subnet_id
|
|
14
|
+
service_allowed_cidrs = var.service_allowed_cidrs
|
|
15
|
+
ssh_allowed_cidrs = var.ssh_allowed_cidrs
|
|
16
|
+
name = var.name
|
|
17
|
+
image_name = var.image_name
|
|
18
|
+
flavor_name = var.flavor_name
|
|
19
|
+
keypair_name = var.keypair_name
|
|
20
|
+
assign_floating_ip = var.assign_floating_ip
|
|
21
|
+
floating_ip_pool = var.floating_ip_pool
|
|
22
|
+
exposed_tcp_ports = var.exposed_tcp_ports
|
|
23
|
+
repo_clone_url = var.repo_clone_url
|
|
24
|
+
repo_ref = var.repo_ref
|
|
25
|
+
compose_file = "infra/compose/dev.yml"
|
|
26
|
+
compose_env_filename = ".env.dev"
|
|
27
|
+
compose_env_content = var.compose_env_content
|
|
28
|
+
deploy_compose_on_boot = var.deploy_compose_on_boot
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
output "network_id" {
|
|
32
|
+
description = "Effective network id used by the DEV(개발계) host"
|
|
33
|
+
value = module.environment_host.network_id
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
output "subnet_id" {
|
|
37
|
+
description = "Effective subnet id used by the DEV(개발계) host"
|
|
38
|
+
value = module.environment_host.subnet_id
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
output "router_id" {
|
|
42
|
+
description = "Created router id when create_router=true"
|
|
43
|
+
value = module.environment_host.router_id
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
output "instance" {
|
|
47
|
+
description = "DEV(개발계) host summary"
|
|
48
|
+
value = module.environment_host.instance
|
|
49
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
provider "openstack" {
|
|
2
|
+
auth_url = var.auth_url
|
|
3
|
+
region = var.region
|
|
4
|
+
endpoint_type = var.interface
|
|
5
|
+
insecure = var.insecure
|
|
6
|
+
|
|
7
|
+
user_name = var.auth_type == "password" ? var.username : null
|
|
8
|
+
password = var.auth_type == "password" ? var.password : null
|
|
9
|
+
tenant_name = var.auth_type == "password" ? var.project_name : null
|
|
10
|
+
user_domain_name = var.auth_type == "password" ? var.user_domain_name : null
|
|
11
|
+
project_domain_name = var.auth_type == "password" ? var.project_domain_name : null
|
|
12
|
+
|
|
13
|
+
application_credential_id = var.auth_type == "application_credential" ? var.application_credential_id : null
|
|
14
|
+
application_credential_secret = var.auth_type == "application_credential" ? var.application_credential_secret : null
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
auth_url = "https://keystone.example.com:5000/v3"
|
|
2
|
+
region = "RegionOne"
|
|
3
|
+
interface = "public"
|
|
4
|
+
auth_type = "password"
|
|
5
|
+
username = "devops"
|
|
6
|
+
password = "change-me"
|
|
7
|
+
project_name = "service-dev"
|
|
8
|
+
user_domain_name = "Default"
|
|
9
|
+
project_domain_name = "Default"
|
|
10
|
+
insecure = false
|
|
11
|
+
|
|
12
|
+
create_network = true
|
|
13
|
+
network_name = "templates-dev-net"
|
|
14
|
+
subnet_name = "templates-dev-subnet"
|
|
15
|
+
subnet_cidr = "10.250.10.0/24"
|
|
16
|
+
create_router = true
|
|
17
|
+
router_name = "templates-dev-router"
|
|
18
|
+
external_network_id = "public"
|
|
19
|
+
|
|
20
|
+
service_allowed_cidrs = ["0.0.0.0/0"]
|
|
21
|
+
ssh_allowed_cidrs = ["203.0.113.10/32"]
|
|
22
|
+
|
|
23
|
+
name = "templates-dev"
|
|
24
|
+
image_name = "ubuntu-22.04"
|
|
25
|
+
flavor_name = "m1.medium"
|
|
26
|
+
keypair_name = "devops"
|
|
27
|
+
assign_floating_ip = true
|
|
28
|
+
floating_ip_pool = "public"
|
|
29
|
+
repo_clone_url = "git@github.com:your-org/templates.git"
|
|
30
|
+
repo_ref = "main"
|
|
31
|
+
deploy_compose_on_boot = true
|
|
32
|
+
compose_env_content = <<-ENV
|
|
33
|
+
DEV_POSTGRES_DB=template
|
|
34
|
+
DEV_POSTGRES_USER=template
|
|
35
|
+
DEV_POSTGRES_PASSWORD=template
|
|
36
|
+
DEV_POSTGRES_PORT=15432
|
|
37
|
+
DEV_SERVER_HTTP_PORT=18000
|
|
38
|
+
DEV_SERVER_APP_NAME=Template Server DEV
|
|
39
|
+
DEV_SERVER_ENVIRONMENT=development
|
|
40
|
+
DEV_SERVER_API_PREFIX=/api/v1
|
|
41
|
+
DEV_SERVER_DATABASE_BACKEND=postgres
|
|
42
|
+
DEV_SERVER_POSTGRES_URL=postgresql+psycopg://template:template@postgres:5432/template
|
|
43
|
+
DEV_SERVER_JWT_SECRET=change-me
|
|
44
|
+
DEV_SERVER_ACCESS_TOKEN_TTL_MINUTES=120
|
|
45
|
+
DEV_SERVER_CORS_ORIGINS=https://dev-landing.example.com,https://dev-platform.example.com,https://dev-mobile.example.com,https://dev-admin.example.com
|
|
46
|
+
DEV_CLIENT_LANDING_PORT=13000
|
|
47
|
+
DEV_CLIENT_PLATFORM_PORT=13001
|
|
48
|
+
DEV_CLIENT_MOBILE_PORT=13002
|
|
49
|
+
DEV_CLIENT_ADMIN_PORT=14000
|
|
50
|
+
DEV_CLIENT_LANDING_VITE_API_BASE_URL=https://dev-api.example.com/api/v1
|
|
51
|
+
DEV_CLIENT_PLATFORM_VITE_API_BASE_URL=https://dev-api.example.com/api/v1
|
|
52
|
+
DEV_CLIENT_MOBILE_VITE_API_BASE_URL=https://dev-api.example.com/api/v1
|
|
53
|
+
DEV_CLIENT_ADMIN_VITE_API_BASE_URL=https://dev-api.example.com/api/v1
|
|
54
|
+
ENV
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
variable "auth_url" {
|
|
2
|
+
description = "OpenStack Keystone auth URL"
|
|
3
|
+
type = string
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
variable "region" {
|
|
7
|
+
description = "OpenStack region name"
|
|
8
|
+
type = string
|
|
9
|
+
default = "RegionOne"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
variable "interface" {
|
|
13
|
+
description = "OpenStack endpoint interface"
|
|
14
|
+
type = string
|
|
15
|
+
default = "public"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
variable "auth_type" {
|
|
19
|
+
description = "OpenStack auth type (password or application_credential)"
|
|
20
|
+
type = string
|
|
21
|
+
default = "password"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
variable "username" {
|
|
25
|
+
description = "OpenStack username"
|
|
26
|
+
type = string
|
|
27
|
+
default = ""
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
variable "password" {
|
|
31
|
+
description = "OpenStack password"
|
|
32
|
+
type = string
|
|
33
|
+
default = ""
|
|
34
|
+
sensitive = true
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
variable "project_name" {
|
|
38
|
+
description = "OpenStack project name"
|
|
39
|
+
type = string
|
|
40
|
+
default = ""
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
variable "user_domain_name" {
|
|
44
|
+
description = "OpenStack user domain"
|
|
45
|
+
type = string
|
|
46
|
+
default = "Default"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
variable "project_domain_name" {
|
|
50
|
+
description = "OpenStack project domain"
|
|
51
|
+
type = string
|
|
52
|
+
default = "Default"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
variable "application_credential_id" {
|
|
56
|
+
description = "OpenStack application credential id"
|
|
57
|
+
type = string
|
|
58
|
+
default = ""
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
variable "application_credential_secret" {
|
|
62
|
+
description = "OpenStack application credential secret"
|
|
63
|
+
type = string
|
|
64
|
+
default = ""
|
|
65
|
+
sensitive = true
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
variable "insecure" {
|
|
69
|
+
description = "Disable TLS certificate validation"
|
|
70
|
+
type = bool
|
|
71
|
+
default = false
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
variable "availability_zone" {
|
|
75
|
+
description = "Optional availability zone for the DEV(개발계) host"
|
|
76
|
+
type = string
|
|
77
|
+
default = ""
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
variable "create_network" {
|
|
81
|
+
description = "Create a dedicated DEV(개발계) network and subnet"
|
|
82
|
+
type = bool
|
|
83
|
+
default = true
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
variable "network_name" {
|
|
87
|
+
description = "DEV(개발계) network name"
|
|
88
|
+
type = string
|
|
89
|
+
default = "templates-dev-net"
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
variable "subnet_name" {
|
|
93
|
+
description = "DEV(개발계) subnet name"
|
|
94
|
+
type = string
|
|
95
|
+
default = "templates-dev-subnet"
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
variable "subnet_cidr" {
|
|
99
|
+
description = "DEV(개발계) subnet CIDR"
|
|
100
|
+
type = string
|
|
101
|
+
default = "10.250.10.0/24"
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
variable "create_router" {
|
|
105
|
+
description = "Create a router and attach the created subnet to the external network"
|
|
106
|
+
type = bool
|
|
107
|
+
default = true
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
variable "router_name" {
|
|
111
|
+
description = "DEV(개발계) router name"
|
|
112
|
+
type = string
|
|
113
|
+
default = "templates-dev-router"
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
variable "external_network_id" {
|
|
117
|
+
description = "External network id used by the router gateway"
|
|
118
|
+
type = string
|
|
119
|
+
default = ""
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
variable "network_id" {
|
|
123
|
+
description = "Existing network id to reuse when create_network=false"
|
|
124
|
+
type = string
|
|
125
|
+
default = ""
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
variable "subnet_id" {
|
|
129
|
+
description = "Existing subnet id to reuse when create_network=false"
|
|
130
|
+
type = string
|
|
131
|
+
default = ""
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
variable "service_allowed_cidrs" {
|
|
135
|
+
description = "CIDR list allowed to reach published application ports"
|
|
136
|
+
type = list(string)
|
|
137
|
+
default = ["0.0.0.0/0"]
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
variable "ssh_allowed_cidrs" {
|
|
141
|
+
description = "CIDR list allowed to reach SSH on the DEV(개발계) host"
|
|
142
|
+
type = list(string)
|
|
143
|
+
default = ["0.0.0.0/0"]
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
variable "name" {
|
|
147
|
+
description = "DEV(개발계) host name"
|
|
148
|
+
type = string
|
|
149
|
+
default = "templates-dev"
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
variable "image_name" {
|
|
153
|
+
description = "OpenStack image name"
|
|
154
|
+
type = string
|
|
155
|
+
default = "ubuntu-22.04"
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
variable "flavor_name" {
|
|
159
|
+
description = "OpenStack flavor name"
|
|
160
|
+
type = string
|
|
161
|
+
default = "m1.medium"
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
variable "keypair_name" {
|
|
165
|
+
description = "OpenStack keypair name"
|
|
166
|
+
type = string
|
|
167
|
+
default = ""
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
variable "assign_floating_ip" {
|
|
171
|
+
description = "Allocate and associate a floating IP"
|
|
172
|
+
type = bool
|
|
173
|
+
default = false
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
variable "floating_ip_pool" {
|
|
177
|
+
description = "Floating IP pool name"
|
|
178
|
+
type = string
|
|
179
|
+
default = ""
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
variable "exposed_tcp_ports" {
|
|
183
|
+
description = "TCP ports exposed by the DEV(개발계) stack"
|
|
184
|
+
type = list(number)
|
|
185
|
+
default = [18000, 13000, 13001, 13002, 14000]
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
variable "repo_clone_url" {
|
|
189
|
+
description = "Optional repository clone URL for boot-time deployment"
|
|
190
|
+
type = string
|
|
191
|
+
default = ""
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
variable "repo_ref" {
|
|
195
|
+
description = "Git ref used for boot-time deployment"
|
|
196
|
+
type = string
|
|
197
|
+
default = "main"
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
variable "compose_env_content" {
|
|
201
|
+
description = "Full .env.dev content used for compose boot deployment"
|
|
202
|
+
type = string
|
|
203
|
+
default = ""
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
variable "deploy_compose_on_boot" {
|
|
207
|
+
description = "Clone the repo and run docker compose on first boot"
|
|
208
|
+
type = bool
|
|
209
|
+
default = false
|
|
210
|
+
}
|