Enterprise platform for transforming YAML configurations into AWS Bedrock agent deployments using Terraform modules
Bedrock Forge simplifies AWS Bedrock agent deployment by allowing teams to define agents, Lambda functions, action groups, knowledge bases, and IAM roles in simple YAML files, then automatically generating production-ready Terraform infrastructure.
- YAML-to-Terraform Generation: Transform declarative YAML configurations into Terraform modules
- Complete Resource Support: Agents, Lambda functions, Action Groups, Knowledge Bases, Guardrails, Prompts, IAM Roles, and Custom Modules
- Custom Module Integration: Include your own Terraform modules alongside Bedrock resources
- Dependency Management: Automatic resource ordering and cross-module references
- Artifact Packaging: Automatic Lambda code packaging and S3 upload
- Schema Management: OpenAPI schema discovery and validation
- IAM Security: Automatic IAM role generation with comprehensive permissions
- GitHub Actions Integration: Complete CI/CD pipeline with automated deployment
- Multi-Environment Support: Development, staging, and production deployments
- Security Best Practices: Least-privilege IAM roles and enterprise compliance patterns
- Scalable Architecture: Support for complex enterprise deployments
- Team Collaboration: Git-based workflow with approval processes
# Install directly from GitHub
go install github.com/your-org/bedrock-forge/cmd/bedrock-forge@latest
# Verify installation
bedrock-forge version# Clone the repository
git clone https://github.com/your-org/bedrock-forge
cd bedrock-forge
# Build and install globally
go build -o bedrock-forge ./cmd/bedrock-forge
sudo mv bedrock-forge /usr/local/bin/
# Or just build locally
go build -o bedrock-forge ./cmd/bedrock-forge
./bedrock-forge version- Go 1.21+ installed
- AWS CLI configured with appropriate credentials
- Terraform 1.0+ installed
- Create your first agent:
# agents/my-agent.yml
kind: Agent
metadata:
name: "my-agent"
description: "My first Bedrock agent"
spec:
foundationModel: "anthropic.claude-3-sonnet-20240229-v1:0"
instruction: "You are a helpful assistant"
# IAM role is automatically generated!- Generate Terraform:
./bedrock-forge generate . ./terraform- Deploy:
cd terraform
terraform init
terraform plan
terraform applyDiscover and list all resources in the specified directory.
./bedrock-forge scan .
./bedrock-forge scan ./examplesValidate YAML syntax and dependencies.
./bedrock-forge validate .
./bedrock-forge validate ./agentsGenerate Terraform configuration from YAML resources.
./bedrock-forge generate . ./terraform
./bedrock-forge generate ./examples ./outputShow version information.
./bedrock-forge version| Resource Type | Description | Auto-IAM | Documentation |
|---|---|---|---|
| Agent | AWS Bedrock agents with guardrails and action groups | ✅ | docs/resources/agent.md |
| Lambda | AWS Lambda functions with automatic packaging | ✅ | docs/resources/lambda.md |
| ActionGroup | Action groups linking agents to Lambda functions | ✅ | docs/resources/action-group.md |
| KnowledgeBase | Vector knowledge bases with S3 data sources | ✅ | docs/resources/knowledge-base.md |
| Guardrail | Content safety and compliance guardrails | ✅ | docs/resources/guardrail.md |
| Prompt | Custom prompts with multiple variants | ✅ | docs/resources/prompt.md |
| IAMRole | Custom IAM roles for advanced scenarios | N/A | docs/resources/iam-role.md |
| CustomModule | Integration with existing Terraform modules | N/A | docs/resources/custom-module.md |
| OpenSearchServerless | OpenSearch serverless for knowledge bases | ✅ | docs/resources/opensearch-serverless.md |
🎉 IAM roles are automatically generated for all Bedrock resources!
- Agents: Get comprehensive permissions for foundation models, Lambda invocation, knowledge bases, and CloudWatch logging
- Lambda Functions: Get execution roles with VPC access and CloudWatch logging
- Action Groups: Inherit permissions from associated agent roles
- Knowledge Bases: Get permissions for S3 access and OpenSearch operations
For enterprise scenarios requiring custom permissions, see docs/resources/iam-role.md.
Complete CI/CD pipeline with validation, packaging, and deployment stages. Compatible with enterprise AWS credential patterns.
See docs/github-actions-guide.md for setup instructions.
- docs/getting-started.md - Complete setup walkthrough
- docs/examples/ - Real-world examples and templates
- docs/resources/ - Detailed documentation for each resource type
- docs/iam-management.md - IAM roles and permissions guide
- docs/enterprise-setup.md - Multi-environment deployments
- docs/github-actions-guide.md - CI/CD setup
- docs/custom-modules.md - Infrastructure integration
- docs/internal-architecture-guide.md - Internal architecture
- docs/enterprise-validation-guide.md - Validation patterns
- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Enterprise Support: Contact your platform team
Bedrock Forge - Simplifying AWS Bedrock deployments for enterprise teams.