@deftai/directive-content 0.55.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/.agents/skills/deft/SKILL.md +6 -0
- package/.agents/skills/deft-directive-article-review/SKILL.md +11 -0
- package/.agents/skills/deft-directive-build/SKILL.md +10 -0
- package/.agents/skills/deft-directive-cost/SKILL.md +12 -0
- package/.agents/skills/deft-directive-debug/SKILL.md +13 -0
- package/.agents/skills/deft-directive-gh-arch/SKILL.md +11 -0
- package/.agents/skills/deft-directive-gh-slice/SKILL.md +10 -0
- package/.agents/skills/deft-directive-glossary/SKILL.md +10 -0
- package/.agents/skills/deft-directive-interview/SKILL.md +9 -0
- package/.agents/skills/deft-directive-pre-pr/SKILL.md +9 -0
- package/.agents/skills/deft-directive-refinement/SKILL.md +10 -0
- package/.agents/skills/deft-directive-release/SKILL.md +12 -0
- package/.agents/skills/deft-directive-review-cycle/SKILL.md +10 -0
- package/.agents/skills/deft-directive-setup/SKILL.md +10 -0
- package/.agents/skills/deft-directive-swarm/SKILL.md +10 -0
- package/.agents/skills/deft-directive-sync/SKILL.md +9 -0
- package/.agents/skills/deft-directive-triage/SKILL.md +9 -0
- package/.agents/skills/deft-directive-write-skill/SKILL.md +9 -0
- package/LICENSE.md +22 -0
- package/QUICK-START.md +167 -0
- package/UPGRADING.md +517 -0
- package/coding/build-output.md +28 -0
- package/coding/coding.md +235 -0
- package/coding/debugging.md +110 -0
- package/coding/holzmann.md +96 -0
- package/coding/hygiene.md +127 -0
- package/coding/security.md +158 -0
- package/coding/testing.md +162 -0
- package/coding/toolchain.md +44 -0
- package/commands.md +300 -0
- package/context/context.md +57 -0
- package/context/deterministic-split.md +67 -0
- package/context/examples.md +26 -0
- package/context/fractal-summaries.md +69 -0
- package/context/long-horizon.md +46 -0
- package/context/spec-deltas.md +177 -0
- package/context/tool-design.md +34 -0
- package/context/working-memory.md +62 -0
- package/contracts/boundary-maps.md +65 -0
- package/contracts/deterministic-questions.md +59 -0
- package/contracts/hierarchy.md +77 -0
- package/conventions/content-manifest.json +399 -0
- package/conventions/machine-generated-banner.md +130 -0
- package/conventions/references.md +120 -0
- package/conventions/rule-ownership.json +382 -0
- package/conventions/task-caching.md +43 -0
- package/conventions/vbrief-filenames.md +70 -0
- package/deployments/README.md +37 -0
- package/deployments/agentuity/README.md +138 -0
- package/deployments/agentuity/via-cli.md +380 -0
- package/deployments/agentuity/via-cloud.md +425 -0
- package/deployments/agentuity/via-github-actions.md +664 -0
- package/deployments/agentuity/via-gravity-network.md +606 -0
- package/deployments/agentuity/via-vpc.md +607 -0
- package/deployments/aws/README.md +38 -0
- package/deployments/aws/via-app-runner.md +612 -0
- package/deployments/aws/via-ecs-fargate.md +561 -0
- package/deployments/aws/via-elastic-beanstalk.md +628 -0
- package/deployments/aws/via-lambda.md +649 -0
- package/deployments/azure/README.md +37 -0
- package/deployments/azure/via-aks.md +390 -0
- package/deployments/azure/via-app-service.md +564 -0
- package/deployments/azure/via-container-apps.md +599 -0
- package/deployments/azure/via-functions.md +552 -0
- package/deployments/cloud-gov/README.md +63 -0
- package/deployments/cloud-gov/agents/compliance-docs.md +154 -0
- package/deployments/cloud-gov/agents.md +39 -0
- package/deployments/cloud-gov/cicd.md +64 -0
- package/deployments/cloud-gov/deployment.md +150 -0
- package/deployments/cloud-gov/logging.md +43 -0
- package/deployments/cloud-gov/manifest.md +121 -0
- package/deployments/cloud-gov/overview.md +58 -0
- package/deployments/cloud-gov/security.md +46 -0
- package/deployments/cloud-gov/services.md +72 -0
- package/deployments/cloud-gov/upstream/README.md +18 -0
- package/deployments/cloudflare/README.md +33 -0
- package/deployments/cloudflare/via-dashboard.md +83 -0
- package/deployments/cloudflare/via-git.md +90 -0
- package/deployments/cloudflare/via-github-actions.md +185 -0
- package/deployments/cloudflare/via-terraform.md +157 -0
- package/deployments/cloudflare/via-wrangler.md +165 -0
- package/deployments/fly-io/README.md +37 -0
- package/deployments/fly-io/via-dockerfile.md +648 -0
- package/deployments/fly-io/via-flyctl.md +653 -0
- package/deployments/fly-io/via-github-actions.md +695 -0
- package/deployments/fly-io/via-multi-region.md +598 -0
- package/deployments/google/README.md +34 -0
- package/deployments/google/via-app-engine.md +42 -0
- package/deployments/google/via-cloud-functions.md +23 -0
- package/deployments/google/via-cloud-run.md +330 -0
- package/deployments/google/via-gke.md +23 -0
- package/deployments/netlify/README.md +99 -0
- package/deployments/netlify/via-cli.md +17 -0
- package/deployments/netlify/via-functions.md +19 -0
- package/deployments/netlify/via-git.md +25 -0
- package/deployments/vercel/README.md +90 -0
- package/deployments/vercel/via-api.md +16 -0
- package/deployments/vercel/via-cli.md +17 -0
- package/deployments/vercel/via-git.md +24 -0
- package/docs/BROWNFIELD.md +179 -0
- package/docs/getting-started.md +137 -0
- package/docs/good-agents-md.md +137 -0
- package/events/README.md +89 -0
- package/events/event-record.schema.json +26 -0
- package/events/registry.json +166 -0
- package/events/registry.schema.json +71 -0
- package/glossary.md +145 -0
- package/incidents/README.md +81 -0
- package/incidents/_template.md +38 -0
- package/interfaces/cli.md +104 -0
- package/interfaces/rest.md +212 -0
- package/interfaces/tui.md +242 -0
- package/interfaces/web.md +123 -0
- package/languages/6502-DASM.md +132 -0
- package/languages/c.md +235 -0
- package/languages/commands.md +23 -0
- package/languages/cpp.md +132 -0
- package/languages/csharp.md +259 -0
- package/languages/dart.md +183 -0
- package/languages/delphi.md +218 -0
- package/languages/elixir.md +208 -0
- package/languages/go.md +78 -0
- package/languages/java.md +278 -0
- package/languages/javascript.md +163 -0
- package/languages/julia.md +175 -0
- package/languages/kotlin.md +193 -0
- package/languages/markdown.md +168 -0
- package/languages/mermaid.md +146 -0
- package/languages/officejs.md +392 -0
- package/languages/python.md +209 -0
- package/languages/r.md +163 -0
- package/languages/rust.md +216 -0
- package/languages/sql.md +216 -0
- package/languages/swift.md +153 -0
- package/languages/typescript.md +132 -0
- package/languages/vba.md +279 -0
- package/languages/vhdl.md +180 -0
- package/languages/visual-basic.md +151 -0
- package/languages/zig.md +196 -0
- package/meta/SOUL.md +27 -0
- package/meta/code-field.md +44 -0
- package/meta/morals.md +40 -0
- package/meta/philosophy.md +39 -0
- package/meta/project.md +49 -0
- package/meta/ralph.md +223 -0
- package/meta/security.md +80 -0
- package/meta/versioning.md +326 -0
- package/package.json +22 -0
- package/packs/lessons/lessons-pack-0.1.json +553 -0
- package/packs/patterns/patterns-pack-0.1.json +57 -0
- package/packs/rules/rules-pack-0.1.json +4767 -0
- package/packs/skills/skills-pack-0.1.json +262 -0
- package/packs/strategies/strategies-pack-0.1.json +167 -0
- package/packs/swarm-spec/swarm-spec-pack-0.1.json +17 -0
- package/patterns/executor-layer-credentials.md +227 -0
- package/patterns/llm-app.md +156 -0
- package/patterns/multi-agent.md +278 -0
- package/patterns/prompt-assembly-layer-ordering.md +154 -0
- package/patterns/role-as-overlay.md +179 -0
- package/platforms/2600.md +137 -0
- package/platforms/unity.md +329 -0
- package/references/composer-skill-porting.md +152 -0
- package/references/cost-models.md +163 -0
- package/references/ip-risk.md +246 -0
- package/references/plain-english-ux.md +275 -0
- package/resilience/context-pruning.md +67 -0
- package/resilience/continue-here.md +62 -0
- package/scm/changelog.md +276 -0
- package/scm/git.md +139 -0
- package/scm/github.md +265 -0
- package/secrets/.gitkeep +0 -0
- package/skills/deft-build/SKILL.md +20 -0
- package/skills/deft-directive-article-review/SKILL.md +156 -0
- package/skills/deft-directive-build/SKILL.md +302 -0
- package/skills/deft-directive-cost/SKILL.md +201 -0
- package/skills/deft-directive-debug/SKILL.md +140 -0
- package/skills/deft-directive-decompose/SKILL.md +96 -0
- package/skills/deft-directive-gh-arch/SKILL.md +160 -0
- package/skills/deft-directive-gh-slice/SKILL.md +199 -0
- package/skills/deft-directive-glossary/SKILL.md +118 -0
- package/skills/deft-directive-interview/SKILL.md +528 -0
- package/skills/deft-directive-pre-pr/SKILL.md +131 -0
- package/skills/deft-directive-probe/SKILL.md +127 -0
- package/skills/deft-directive-refinement/SKILL.md +403 -0
- package/skills/deft-directive-release/SKILL.md +266 -0
- package/skills/deft-directive-review-cycle/SKILL.md +401 -0
- package/skills/deft-directive-setup/SKILL.md +717 -0
- package/skills/deft-directive-swarm/SKILL.md +989 -0
- package/skills/deft-directive-sync/SKILL.md +288 -0
- package/skills/deft-directive-triage/SKILL.md +137 -0
- package/skills/deft-directive-write-skill/SKILL.md +169 -0
- package/skills/deft-interview/SKILL.md +16 -0
- package/skills/deft-pre-pr/SKILL.md +16 -0
- package/skills/deft-review-cycle/SKILL.md +16 -0
- package/skills/deft-roadmap-refresh/SKILL.md +16 -0
- package/skills/deft-setup/SKILL.md +20 -0
- package/skills/deft-swarm/SKILL.md +16 -0
- package/skills/deft-sync/SKILL.md +16 -0
- package/strategies/README.md +83 -0
- package/strategies/artifact-guards.md +85 -0
- package/strategies/bdd.md +115 -0
- package/strategies/brownfield.md +7 -0
- package/strategies/discuss.md +129 -0
- package/strategies/emit-hints.md +69 -0
- package/strategies/enterprise.md +193 -0
- package/strategies/interview.md +551 -0
- package/strategies/map.md +179 -0
- package/strategies/probe.md +151 -0
- package/strategies/rapid.md +155 -0
- package/strategies/research.md +155 -0
- package/strategies/roadmap.md +9 -0
- package/strategies/speckit.md +437 -0
- package/strategies/v0-20-contract.md +134 -0
- package/strategies/yolo.md +169 -0
- package/swarm/swarm.md +300 -0
- package/templates/COST-ESTIMATE.md +114 -0
- package/templates/PULL_REQUEST_TEMPLATE.md +35 -0
- package/templates/agent-prompt-preamble.md +409 -0
- package/templates/agents-entry.md +211 -0
- package/templates/agents-entry.placeholders.md +75 -0
- package/templates/embed.go +20 -0
- package/templates/embed_test.go +36 -0
- package/templates/make-spec-example.md +9 -0
- package/templates/make-spec.md +246 -0
- package/templates/project.md.template +52 -0
- package/templates/specification.md +1 -0
- package/templates/swarm-greptile-poller-prompt.md +556 -0
- package/templates/user.md.template +31 -0
- package/tools/RWLDL.md +80 -0
- package/tools/greptile.md +141 -0
- package/tools/installer.md +23 -0
- package/tools/taskfile-migration.md +32 -0
- package/tools/taskfile.md +185 -0
- package/tools/telemetry.md +285 -0
- package/vbrief/schemas/cache-meta.schema.json +137 -0
- package/vbrief/schemas/candidates.schema.json +130 -0
- package/vbrief/schemas/codebase-map.schema.json +213 -0
- package/vbrief/schemas/lessons-pack.schema.json +134 -0
- package/vbrief/schemas/patterns-pack.schema.json +84 -0
- package/vbrief/schemas/rules-pack.schema.json +105 -0
- package/vbrief/schemas/skills-pack.schema.json +94 -0
- package/vbrief/schemas/slices.schema.json +87 -0
- package/vbrief/schemas/strategies-pack.schema.json +89 -0
- package/vbrief/schemas/swarm-spec-pack.schema.json +84 -0
- package/vbrief/schemas/vbrief-core.schema.json +1022 -0
- package/vbrief/vbrief.md +684 -0
- package/verification/integration.md +76 -0
- package/verification/plan-checking.md +85 -0
- package/verification/uat.md +60 -0
- package/verification/verification.md +117 -0
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
# Deploy via Private VPC / On-Premises
|
|
2
|
+
|
|
3
|
+
Deploy Agentuity agents to your own infrastructure for maximum control, security, and compliance. Run in your private cloud, VPC, or on-premises data center with the same Agentuity developer experience.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Agentuity supports deployment to:
|
|
8
|
+
- **Private VPC**: AWS VPC, Azure VNet, GCP VPC
|
|
9
|
+
- **On-Premises**: Your own data centers
|
|
10
|
+
- **Hybrid**: Mix of cloud and on-prem
|
|
11
|
+
- **Air-Gapped**: Completely disconnected environments
|
|
12
|
+
|
|
13
|
+
All using the same SDK, same CLI, same developer experience as Agentuity Cloud.
|
|
14
|
+
|
|
15
|
+
## Use Cases
|
|
16
|
+
|
|
17
|
+
- **Enterprise Security**: Keep data within your security perimeter
|
|
18
|
+
- **Regulatory Compliance**: Meet data residency requirements (GDPR, HIPAA, SOC 2)
|
|
19
|
+
- **Data Sovereignty**: Ensure data never leaves specific geographic regions
|
|
20
|
+
- **Hybrid Architecture**: Connect cloud agents with on-prem data sources
|
|
21
|
+
- **Air-Gapped Environments**: Deploy in disconnected networks
|
|
22
|
+
|
|
23
|
+
## Prerequisites
|
|
24
|
+
|
|
25
|
+
### Infrastructure Requirements
|
|
26
|
+
|
|
27
|
+
- **Kubernetes Cluster**: K8s 1.24+ (EKS, AKS, GKE, or self-hosted)
|
|
28
|
+
- **Container Registry**: Private registry for agent images
|
|
29
|
+
- **Load Balancer**: For ingress traffic
|
|
30
|
+
- **Storage**: Persistent storage for agent state
|
|
31
|
+
- **Networking**: VPN or Direct Connect (for hybrid)
|
|
32
|
+
|
|
33
|
+
### Software Requirements
|
|
34
|
+
|
|
35
|
+
- `kubectl` configured for your cluster
|
|
36
|
+
- `helm` 3.0+ for chart installation
|
|
37
|
+
- Agentuity CLI installed
|
|
38
|
+
- Docker or container runtime
|
|
39
|
+
|
|
40
|
+
## Architecture
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
┌─────────────────────────────────────────┐
|
|
44
|
+
│ Your VPC / Data Center │
|
|
45
|
+
│ │
|
|
46
|
+
│ ┌──────────────────────────────────┐ │
|
|
47
|
+
│ │ Agentuity Control Plane │ │
|
|
48
|
+
│ │ (Agent Management, Monitoring) │ │
|
|
49
|
+
│ └──────────────────────────────────┘ │
|
|
50
|
+
│ │ │
|
|
51
|
+
│ ┌──────────────┴──────────────────┐ │
|
|
52
|
+
│ │ Agent Runtime Cluster │ │
|
|
53
|
+
│ │ ┌─────┐ ┌─────┐ ┌─────┐ │ │
|
|
54
|
+
│ │ │Agent│ │Agent│ │Agent│ │ │
|
|
55
|
+
│ │ │ 1 │ │ 2 │ │ 3 │ │ │
|
|
56
|
+
│ │ └─────┘ └─────┘ └─────┘ │ │
|
|
57
|
+
│ └──────────────────────────────────┘ │
|
|
58
|
+
│ │ │
|
|
59
|
+
│ ┌──────────────┴──────────────────┐ │
|
|
60
|
+
│ │ Built-in Services │ │
|
|
61
|
+
│ │ (Storage, DB, Queue) │ │
|
|
62
|
+
│ └──────────────────────────────────┘ │
|
|
63
|
+
└─────────────────────────────────────────┘
|
|
64
|
+
│
|
|
65
|
+
▼
|
|
66
|
+
Agentuity Console
|
|
67
|
+
(Optional, for monitoring)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Deployment Methods
|
|
71
|
+
|
|
72
|
+
### Method 1: Helm Chart (Recommended)
|
|
73
|
+
|
|
74
|
+
#### 1. Add Agentuity Helm Repository
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
helm repo add agentuity https://charts.agentuity.com
|
|
78
|
+
helm repo update
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
#### 2. Create Values File
|
|
82
|
+
|
|
83
|
+
```yaml
|
|
84
|
+
# agentuity-values.yaml
|
|
85
|
+
|
|
86
|
+
# Deployment mode
|
|
87
|
+
mode: vpc # or 'on-prem', 'hybrid'
|
|
88
|
+
|
|
89
|
+
# Cluster configuration
|
|
90
|
+
cluster:
|
|
91
|
+
name: my-agentuity-cluster
|
|
92
|
+
region: us-east-1 # For VPC deployments
|
|
93
|
+
|
|
94
|
+
# Agent runtime
|
|
95
|
+
runtime:
|
|
96
|
+
replicas: 3
|
|
97
|
+
resources:
|
|
98
|
+
requests:
|
|
99
|
+
memory: "2Gi"
|
|
100
|
+
cpu: "1"
|
|
101
|
+
limits:
|
|
102
|
+
memory: "4Gi"
|
|
103
|
+
cpu: "2"
|
|
104
|
+
|
|
105
|
+
# Storage configuration
|
|
106
|
+
storage:
|
|
107
|
+
type: persistent # or 's3', 'azure-blob', 'gcs'
|
|
108
|
+
size: 100Gi
|
|
109
|
+
storageClass: fast-ssd
|
|
110
|
+
|
|
111
|
+
# Database
|
|
112
|
+
database:
|
|
113
|
+
type: postgres
|
|
114
|
+
host: your-postgres.internal
|
|
115
|
+
port: 5432
|
|
116
|
+
database: agentuity
|
|
117
|
+
# Credentials via secrets
|
|
118
|
+
|
|
119
|
+
# Networking
|
|
120
|
+
ingress:
|
|
121
|
+
enabled: true
|
|
122
|
+
className: nginx
|
|
123
|
+
hosts:
|
|
124
|
+
- agents.yourcompany.internal
|
|
125
|
+
tls:
|
|
126
|
+
enabled: true
|
|
127
|
+
secretName: agentuity-tls
|
|
128
|
+
|
|
129
|
+
# Security
|
|
130
|
+
security:
|
|
131
|
+
networkPolicy:
|
|
132
|
+
enabled: true
|
|
133
|
+
podSecurityPolicy:
|
|
134
|
+
enabled: true
|
|
135
|
+
rbac:
|
|
136
|
+
enabled: true
|
|
137
|
+
|
|
138
|
+
# Monitoring
|
|
139
|
+
monitoring:
|
|
140
|
+
prometheus:
|
|
141
|
+
enabled: true
|
|
142
|
+
grafana:
|
|
143
|
+
enabled: true
|
|
144
|
+
|
|
145
|
+
# Agentuity Console connection (optional)
|
|
146
|
+
console:
|
|
147
|
+
enabled: false # Set true to connect to Agentuity Console
|
|
148
|
+
endpoint: https://console.agentuity.com
|
|
149
|
+
apiKey: ${AGENTUITY_API_KEY}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
#### 3. Install Agentuity
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# Create namespace
|
|
156
|
+
kubectl create namespace agentuity
|
|
157
|
+
|
|
158
|
+
# Install with Helm
|
|
159
|
+
helm install agentuity agentuity/agentuity \
|
|
160
|
+
--namespace agentuity \
|
|
161
|
+
--values agentuity-values.yaml
|
|
162
|
+
|
|
163
|
+
# Check installation
|
|
164
|
+
kubectl get pods -n agentuity
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Method 2: Terraform
|
|
168
|
+
|
|
169
|
+
```hcl
|
|
170
|
+
# main.tf
|
|
171
|
+
|
|
172
|
+
module "agentuity_vpc" {
|
|
173
|
+
source = "agentuity/vpc-deployment/aws"
|
|
174
|
+
version = "1.0.0"
|
|
175
|
+
|
|
176
|
+
cluster_name = "agentuity-prod"
|
|
177
|
+
vpc_id = aws_vpc.main.id
|
|
178
|
+
subnet_ids = aws_subnet.private[*].id
|
|
179
|
+
|
|
180
|
+
instance_type = "m5.xlarge"
|
|
181
|
+
min_size = 3
|
|
182
|
+
max_size = 10
|
|
183
|
+
|
|
184
|
+
database_config = {
|
|
185
|
+
engine = "postgres"
|
|
186
|
+
instance_class = "db.r5.large"
|
|
187
|
+
allocated_storage = 100
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
storage_config = {
|
|
191
|
+
type = "ebs"
|
|
192
|
+
size = 500
|
|
193
|
+
iops = 3000
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
tags = {
|
|
197
|
+
Environment = "production"
|
|
198
|
+
ManagedBy = "terraform"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
terraform init
|
|
205
|
+
terraform plan
|
|
206
|
+
terraform apply
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Method 3: Docker Compose (Development/Single Node)
|
|
210
|
+
|
|
211
|
+
```yaml
|
|
212
|
+
# docker-compose.yml
|
|
213
|
+
|
|
214
|
+
version: '3.8'
|
|
215
|
+
|
|
216
|
+
services:
|
|
217
|
+
agentuity-runtime:
|
|
218
|
+
image: agentuity/runtime:latest
|
|
219
|
+
ports:
|
|
220
|
+
- "3500:3500"
|
|
221
|
+
environment:
|
|
222
|
+
- AGENTUITY_MODE=on-prem
|
|
223
|
+
- DATABASE_URL=postgres://user:pass@postgres:5432/agentuity
|
|
224
|
+
- REDIS_URL=redis://redis:6379
|
|
225
|
+
volumes:
|
|
226
|
+
- ./agents:/app/agents
|
|
227
|
+
- agent-data:/data
|
|
228
|
+
depends_on:
|
|
229
|
+
- postgres
|
|
230
|
+
- redis
|
|
231
|
+
|
|
232
|
+
postgres:
|
|
233
|
+
image: postgres:15
|
|
234
|
+
environment:
|
|
235
|
+
POSTGRES_DB: agentuity
|
|
236
|
+
POSTGRES_USER: agentuity
|
|
237
|
+
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
238
|
+
volumes:
|
|
239
|
+
- postgres-data:/var/lib/postgresql/data
|
|
240
|
+
|
|
241
|
+
redis:
|
|
242
|
+
image: redis:7-alpine
|
|
243
|
+
volumes:
|
|
244
|
+
- redis-data:/data
|
|
245
|
+
|
|
246
|
+
volumes:
|
|
247
|
+
agent-data:
|
|
248
|
+
postgres-data:
|
|
249
|
+
redis-data:
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
docker-compose up -d
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Configuration
|
|
257
|
+
|
|
258
|
+
### Network Configuration
|
|
259
|
+
|
|
260
|
+
#### VPC Peering (AWS)
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
# Create VPC peering connection
|
|
264
|
+
aws ec2 create-vpc-peering-connection \
|
|
265
|
+
--vpc-id vpc-agentuity \
|
|
266
|
+
--peer-vpc-id vpc-production
|
|
267
|
+
|
|
268
|
+
# Update route tables
|
|
269
|
+
aws ec2 create-route \
|
|
270
|
+
--route-table-id rtb-agentuity \
|
|
271
|
+
--destination-cidr-block 10.0.0.0/16 \
|
|
272
|
+
--vpc-peering-connection-id pcx-xxxxx
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
#### Private Link (AWS)
|
|
276
|
+
|
|
277
|
+
```yaml
|
|
278
|
+
# VPC Endpoint Service
|
|
279
|
+
privateLink:
|
|
280
|
+
enabled: true
|
|
281
|
+
serviceId: vpce-svc-xxxxx
|
|
282
|
+
allowedPrincipals:
|
|
283
|
+
- arn:aws:iam::123456789:root
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
#### VPN Configuration (On-Prem)
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
# Configure site-to-site VPN
|
|
290
|
+
# Connect on-prem network to Agentuity cluster
|
|
291
|
+
# Ensure proper routing for agent traffic
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Security Configuration
|
|
295
|
+
|
|
296
|
+
#### Network Policies
|
|
297
|
+
|
|
298
|
+
```yaml
|
|
299
|
+
# network-policy.yaml
|
|
300
|
+
apiVersion: networking.k8s.io/v1
|
|
301
|
+
kind: NetworkPolicy
|
|
302
|
+
metadata:
|
|
303
|
+
name: agentuity-agent-policy
|
|
304
|
+
namespace: agentuity
|
|
305
|
+
spec:
|
|
306
|
+
podSelector:
|
|
307
|
+
matchLabels:
|
|
308
|
+
app: agentuity-agent
|
|
309
|
+
policyTypes:
|
|
310
|
+
- Ingress
|
|
311
|
+
- Egress
|
|
312
|
+
ingress:
|
|
313
|
+
- from:
|
|
314
|
+
- podSelector:
|
|
315
|
+
matchLabels:
|
|
316
|
+
app: agentuity-gateway
|
|
317
|
+
ports:
|
|
318
|
+
- protocol: TCP
|
|
319
|
+
port: 8080
|
|
320
|
+
egress:
|
|
321
|
+
- to:
|
|
322
|
+
- podSelector:
|
|
323
|
+
matchLabels:
|
|
324
|
+
app: postgres
|
|
325
|
+
ports:
|
|
326
|
+
- protocol: TCP
|
|
327
|
+
port: 5432
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
#### Service Mesh (Optional)
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
# Install Istio for advanced traffic management
|
|
334
|
+
istioctl install --set profile=default
|
|
335
|
+
|
|
336
|
+
# Enable for Agentuity namespace
|
|
337
|
+
kubectl label namespace agentuity istio-injection=enabled
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Storage Configuration
|
|
341
|
+
|
|
342
|
+
#### Persistent Volumes
|
|
343
|
+
|
|
344
|
+
```yaml
|
|
345
|
+
# pv.yaml
|
|
346
|
+
apiVersion: v1
|
|
347
|
+
kind: PersistentVolume
|
|
348
|
+
metadata:
|
|
349
|
+
name: agentuity-agent-storage
|
|
350
|
+
spec:
|
|
351
|
+
capacity:
|
|
352
|
+
storage: 100Gi
|
|
353
|
+
accessModes:
|
|
354
|
+
- ReadWriteMany
|
|
355
|
+
persistentVolumeReclaimPolicy: Retain
|
|
356
|
+
storageClassName: fast-ssd
|
|
357
|
+
nfs:
|
|
358
|
+
server: nfs.internal.company.com
|
|
359
|
+
path: /exports/agentuity
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
## Agent Deployment
|
|
363
|
+
|
|
364
|
+
### Deploy Agent to VPC
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
# Configure CLI for VPC deployment
|
|
368
|
+
agentuity config set endpoint https://agents.yourcompany.internal
|
|
369
|
+
agentuity config set mode vpc
|
|
370
|
+
|
|
371
|
+
# Deploy agent
|
|
372
|
+
cd my-agent
|
|
373
|
+
agentuity deploy --target vpc
|
|
374
|
+
|
|
375
|
+
# Agent deploys to your VPC cluster
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Multi-Environment
|
|
379
|
+
|
|
380
|
+
```bash
|
|
381
|
+
# Configure multiple environments
|
|
382
|
+
agentuity config add-context production \
|
|
383
|
+
--endpoint https://agents-prod.internal \
|
|
384
|
+
--mode vpc
|
|
385
|
+
|
|
386
|
+
agentuity config add-context staging \
|
|
387
|
+
--endpoint https://agents-staging.internal \
|
|
388
|
+
--mode vpc
|
|
389
|
+
|
|
390
|
+
# Switch contexts
|
|
391
|
+
agentuity config use-context production
|
|
392
|
+
|
|
393
|
+
# Deploy
|
|
394
|
+
agentuity deploy
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
## Hybrid Deployment
|
|
398
|
+
|
|
399
|
+
### Cloud Control Plane + VPC Agents
|
|
400
|
+
|
|
401
|
+
```yaml
|
|
402
|
+
# agentuity.yaml
|
|
403
|
+
mode: hybrid
|
|
404
|
+
|
|
405
|
+
# Control plane in Agentuity Cloud
|
|
406
|
+
controlPlane:
|
|
407
|
+
type: cloud
|
|
408
|
+
endpoint: https://console.agentuity.com
|
|
409
|
+
|
|
410
|
+
# Agents run in your VPC
|
|
411
|
+
agentRuntime:
|
|
412
|
+
type: vpc
|
|
413
|
+
cluster: arn:aws:eks:us-east-1:123456789:cluster/agentuity
|
|
414
|
+
|
|
415
|
+
# Secure tunnel for communication
|
|
416
|
+
tunnel:
|
|
417
|
+
type: wireguard
|
|
418
|
+
endpoint: vpn.yourcompany.com
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
### Agent-to-Agent Communication
|
|
422
|
+
|
|
423
|
+
```typescript
|
|
424
|
+
// Agents in VPC can call agents in Cloud
|
|
425
|
+
import { createAgent } from '@agentuity/runtime';
|
|
426
|
+
|
|
427
|
+
const vpcAgent = createAgent('vpc-agent', {
|
|
428
|
+
handler: async (ctx) => {
|
|
429
|
+
// Call cloud-hosted agent
|
|
430
|
+
const result = await ctx.callAgent('cloud-agent', {
|
|
431
|
+
data: 'sensitive data stays in VPC'
|
|
432
|
+
});
|
|
433
|
+
return result;
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
## Monitoring & Operations
|
|
439
|
+
|
|
440
|
+
### Observability
|
|
441
|
+
|
|
442
|
+
```yaml
|
|
443
|
+
# Enable observability stack
|
|
444
|
+
monitoring:
|
|
445
|
+
prometheus:
|
|
446
|
+
enabled: true
|
|
447
|
+
retention: 30d
|
|
448
|
+
|
|
449
|
+
grafana:
|
|
450
|
+
enabled: true
|
|
451
|
+
dashboards:
|
|
452
|
+
- agentuity-agents
|
|
453
|
+
- agentuity-infrastructure
|
|
454
|
+
|
|
455
|
+
loki:
|
|
456
|
+
enabled: true # Log aggregation
|
|
457
|
+
|
|
458
|
+
tempo:
|
|
459
|
+
enabled: true # Distributed tracing
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
### Alerts
|
|
463
|
+
|
|
464
|
+
```yaml
|
|
465
|
+
# alerts.yaml
|
|
466
|
+
groups:
|
|
467
|
+
- name: agentuity-agents
|
|
468
|
+
rules:
|
|
469
|
+
- alert: HighAgentErrorRate
|
|
470
|
+
expr: rate(agent_errors[5m]) > 0.05
|
|
471
|
+
annotations:
|
|
472
|
+
summary: "High error rate for {{ $labels.agent }}"
|
|
473
|
+
|
|
474
|
+
- alert: AgentDown
|
|
475
|
+
expr: up{job="agentuity-agent"} == 0
|
|
476
|
+
for: 1m
|
|
477
|
+
annotations:
|
|
478
|
+
summary: "Agent {{ $labels.instance }} is down"
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
### Backup & Disaster Recovery
|
|
482
|
+
|
|
483
|
+
```bash
|
|
484
|
+
# Backup agent state
|
|
485
|
+
kubectl exec -n agentuity agentuity-0 -- \
|
|
486
|
+
/opt/agentuity/bin/backup create
|
|
487
|
+
|
|
488
|
+
# Schedule automatic backups
|
|
489
|
+
kubectl apply -f - <<EOF
|
|
490
|
+
apiVersion: batch/v1
|
|
491
|
+
kind: CronJob
|
|
492
|
+
metadata:
|
|
493
|
+
name: agentuity-backup
|
|
494
|
+
spec:
|
|
495
|
+
schedule: "0 2 * * *" # Daily at 2 AM
|
|
496
|
+
jobTemplate:
|
|
497
|
+
spec:
|
|
498
|
+
template:
|
|
499
|
+
spec:
|
|
500
|
+
containers:
|
|
501
|
+
- name: backup
|
|
502
|
+
image: agentuity/backup:latest
|
|
503
|
+
args: ["--target", "s3://backups/agentuity"]
|
|
504
|
+
EOF
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
## Compliance & Security
|
|
508
|
+
|
|
509
|
+
### Data Residency
|
|
510
|
+
|
|
511
|
+
```yaml
|
|
512
|
+
# Ensure data stays in specific region
|
|
513
|
+
dataResidency:
|
|
514
|
+
region: eu-west-1
|
|
515
|
+
enforceStrict: true
|
|
516
|
+
allowedRegions:
|
|
517
|
+
- eu-west-1
|
|
518
|
+
- eu-central-1
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
### Encryption
|
|
522
|
+
|
|
523
|
+
```yaml
|
|
524
|
+
# Enable encryption at rest
|
|
525
|
+
encryption:
|
|
526
|
+
atRest:
|
|
527
|
+
enabled: true
|
|
528
|
+
provider: aws-kms # or azure-keyvault, google-kms
|
|
529
|
+
keyId: arn:aws:kms:...
|
|
530
|
+
|
|
531
|
+
inTransit:
|
|
532
|
+
enabled: true
|
|
533
|
+
minTLSVersion: "1.3"
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### Audit Logging
|
|
537
|
+
|
|
538
|
+
```yaml
|
|
539
|
+
# Enable comprehensive audit logs
|
|
540
|
+
auditLog:
|
|
541
|
+
enabled: true
|
|
542
|
+
destination: s3://audit-logs/agentuity
|
|
543
|
+
events:
|
|
544
|
+
- agent_deploy
|
|
545
|
+
- agent_invoke
|
|
546
|
+
- config_change
|
|
547
|
+
- secret_access
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
## Troubleshooting
|
|
551
|
+
|
|
552
|
+
### Agent Won't Deploy
|
|
553
|
+
|
|
554
|
+
```bash
|
|
555
|
+
# Check cluster connectivity
|
|
556
|
+
kubectl cluster-info
|
|
557
|
+
|
|
558
|
+
# Verify Agentuity pods
|
|
559
|
+
kubectl get pods -n agentuity
|
|
560
|
+
|
|
561
|
+
# Check logs
|
|
562
|
+
kubectl logs -n agentuity deployment/agentuity-runtime
|
|
563
|
+
|
|
564
|
+
# Test network connectivity
|
|
565
|
+
kubectl run -it --rm debug --image=busybox --restart=Never -- \
|
|
566
|
+
wget -O- http://agentuity-runtime:3500/health
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
### Performance Issues
|
|
570
|
+
|
|
571
|
+
```bash
|
|
572
|
+
# Check resource usage
|
|
573
|
+
kubectl top pods -n agentuity
|
|
574
|
+
|
|
575
|
+
# Scale up
|
|
576
|
+
kubectl scale deployment/agentuity-runtime \
|
|
577
|
+
--replicas=5 -n agentuity
|
|
578
|
+
|
|
579
|
+
# Check database performance
|
|
580
|
+
kubectl exec -it postgres-0 -n agentuity -- \
|
|
581
|
+
psql -c "SELECT * FROM pg_stat_activity;"
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
## Best Practices
|
|
585
|
+
|
|
586
|
+
1. **Network Isolation**: Use network policies to restrict traffic
|
|
587
|
+
2. **Secrets Management**: Use Vault or cloud secret managers
|
|
588
|
+
3. **Resource Limits**: Set appropriate CPU/memory limits
|
|
589
|
+
4. **Monitoring**: Enable comprehensive observability
|
|
590
|
+
5. **Backup**: Regular backups of agent state and config
|
|
591
|
+
6. **Updates**: Keep Agentuity runtime updated
|
|
592
|
+
7. **Documentation**: Document your VPC architecture
|
|
593
|
+
|
|
594
|
+
## Next Steps
|
|
595
|
+
|
|
596
|
+
- **Connect to Cloud Console**: Optional monitoring dashboard
|
|
597
|
+
- **Multi-Region**: Deploy across multiple regions
|
|
598
|
+
- **Disaster Recovery**: Set up DR environment
|
|
599
|
+
- **CI/CD**: See `via-github-actions.md` for automation
|
|
600
|
+
- **Multi-Cloud**: See `via-gravity-network.md` for multi-cloud
|
|
601
|
+
|
|
602
|
+
## References
|
|
603
|
+
|
|
604
|
+
- [VPC Deployment Guide](https://agentuity.dev/deployment/vpc)
|
|
605
|
+
- [Kubernetes Best Practices](https://agentuity.dev/deployment/kubernetes)
|
|
606
|
+
- [Security Hardening](https://agentuity.dev/security)
|
|
607
|
+
- [Enterprise Support](https://agentuity.com/enterprise)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# AWS Deployment Module
|
|
2
|
+
|
|
3
|
+
Deft guidance for deploying applications to Amazon Web Services.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
- ! Optional module
|
|
8
|
+
- ~ Good for Deft usage
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
AWS offers comprehensive deployment options from serverless to full infrastructure control.
|
|
13
|
+
|
|
14
|
+
## Deployment Methods
|
|
15
|
+
|
|
16
|
+
| File | Method | Best For |
|
|
17
|
+
|------|--------|----------|
|
|
18
|
+
| `via-lambda.md` | AWS Lambda / SAM | Serverless functions, event-driven APIs (default for serverless) |
|
|
19
|
+
| `via-app-runner.md` | AWS App Runner | Simple containerized web apps, minimal configuration (default for containers) |
|
|
20
|
+
| `via-ecs-fargate.md` | ECS Fargate | Production containers, complex apps, full orchestration |
|
|
21
|
+
| `via-elastic-beanstalk.md` | Elastic Beanstalk | Traditional PaaS, multi-language support, managed infrastructure |
|
|
22
|
+
|
|
23
|
+
## Quick Decision Guide
|
|
24
|
+
|
|
25
|
+
- **Default serverless**: `via-lambda.md` — SAM or Serverless Framework for functions and APIs
|
|
26
|
+
- **Default containers**: `via-app-runner.md` — simplest path from code/image to HTTPS endpoint
|
|
27
|
+
- **Complex containers**: `via-ecs-fargate.md` — when you need load balancers, VPC, advanced orchestration
|
|
28
|
+
- **Traditional apps**: `via-elastic-beanstalk.md` — PaaS for Python, Node.js, Java, .NET, PHP, Ruby, Go
|
|
29
|
+
|
|
30
|
+
## References
|
|
31
|
+
|
|
32
|
+
- [AWS Deployment Options](https://aws.amazon.com/products/compute/)
|
|
33
|
+
- [AWS Lambda Documentation](https://docs.aws.amazon.com/lambda/)
|
|
34
|
+
- [AWS App Runner Documentation](https://docs.aws.amazon.com/apprunner/)
|
|
35
|
+
- [AWS Elastic Beanstalk Documentation](https://docs.aws.amazon.com/elasticbeanstalk/)
|
|
36
|
+
- [AWS ECS Documentation](https://docs.aws.amazon.com/ecs/)
|
|
37
|
+
- [AWS EKS Documentation](https://docs.aws.amazon.com/eks/)
|
|
38
|
+
- [AWS Amplify Documentation](https://docs.amplify.aws/)
|