1 line
3.7 KiB
JSON
1 line
3.7 KiB
JSON
{"repo": "aws-samples/sample-agentic-data", "files": {"cdk/README.md": {"e3defa3dba064d060c007121457501f0b1884d32": {"t": 1785674117.3143148, "n": 3448, "h": "0929a23241153dd0", "c": "# Agentic Data — CDK Deployment\n\nMulti-Agent Data Analytics Platform powered by Strands Agents SDK + Amazon Bedrock.\n\n## Prerequisites\n\n- AWS CLI configured with appropriate credentials\n- Node.js 18+\n- Docker (for building container image)\n- CDK CLI: `npm install -g aws-cdk`\n\n## Quick Start\n\n```bash\ncd cdk\nnpm install\n\n# Deploy with defaults (Bedrock + local auth)\ncdk deploy AgenticDataStack \\\n --parameters AdminPassword=<YOUR_SECURE_PASSWORD> \\\n --parameters AllowedCIDRs=10.0.0.0/8\n\n# Deploy with OpenAI-compatible model\ncdk deploy AgenticDataStack \\\n --context model_provider=openai_compatible \\\n --context openai_base_url=https://api.siliconflow.cn/v1 \\\n --context openai_api_key=sk-xxx \\\n --context openai_model=Pro/zai-org/GLM-5 \\\n --parameters AdminPassword=<YOUR_SECURE_PASSWORD> \\\n --parameters AllowedCIDRs=10.0.0.0/8\n\n# Deploy with existing VPC + RDS\ncdk deploy AgenticDataStack \\\n --context vpc_id=vpc-xxx \\\n --context enable_rds=true \\\n --parameters AdminPassword=<YOUR_SECURE_PASSWORD> \\\n --parameters AllowedCIDRs=10.0.0.0/8\n\n# China region\ncdk deploy AgenticDataStack \\\n --context region_type=china \\\n --context model_provider=openai_compatible \\\n --context openai_base_url=https://api.siliconflow.cn/v1 \\\n --context openai_api_key=sk-xxx \\\n --context openai_model=Pro/zai-org/GLM-5 \\\n --parameters AdminPassword=<YOUR_SECURE_PASSWORD> \\\n --parameters AllowedCIDRs=10.0.0.0/8\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `AdminPassword` | CFN Parameter | `<YOUR_SECURE_PASSWORD>` | Admin user password |\n| `AllowedCIDRs` | CFN Parameter | `10.0.0.0/8` | Comma-separated CIDRs for ALB (⛔ NEVER 0.0.0.0/0) |\n\n## Context Variables\n\n| Variable | Default | Options |\n|----------|---------|---------|\n| `region_type` | `global` | `global`, `china` |\n| `model_provider` | `bedrock` | `bedrock`, `openai_compatible` |\n| `model_id` | `us.anthropic.claude-sonnet-4-6` | Any Bedrock model ID |\n| `openai_base_url` | - | OpenAI-compatible endpoint URL |\n| `openai_api_key` | - | API key |\n| `openai_model` | - | Model name |\n| `auth_provider` | `local` | `local`, `cognito`, `authing`, `entra_id` |\n| `vpc_id` | - | Use existing VPC (creates new if empty) |\n| `enable_rds` | `false` | `true` to create RDS PostgreSQL |\n\n## Architecture\n\n```\nInternet → ALB (port 80, CIDR whitelist)\n → ECS Fargate (1 task, 1vCPU/2GB)\n → DynamoDB × 5 (config, chat, cost, events, feedback)\n → S3 (data + reports)\n → Bedrock / OpenAI API (model inference)\n → [Optional] RDS PostgreSQL\n → [Optional] Athena + Glue (data lake)\n```\n\n## Post-Deployment\n\n1. Open the `ApplicationURL` from CDK output\n2. Login: `admin` / your password\n3. Follow the onboarding guide:\n - Connect data sources (PG/Athena/Snowflake/S3)\n - Create Agents\n - Configure Scenes\n - Start asking questions\n\n## Cost Estimate\n\n| Component | Monthly Cost |\n|-----------|-------------|\n| ECS Fargate (1 task) | ~$15 |\n| DynamoDB (on-demand) | ~$1-5 |\n| S3 | ~$1 |\n| ALB | ~$16 |\n| NAT Gateway | ~$32 |\n| RDS (if enabled) | ~$30 |\n| **Total (without RDS)** | **~$65** |\n| **Total (with RDS)** | **~$95** |\n\n*Bedrock model costs are usage-based and not included.*\n\n## Cleanup\n\n```bash\ncdk destroy AgenticDataStack\n```\n\nNote: DynamoDB tables and S3 bucket have `RETAIN` policy and must be deleted manually.\n"}}}} |