Repository navigation
Deploying
balakrishnagatla edited this page Nov 29, 2026
·
1 revision
deploy/aws creates:
- MCP server on App Runner: HTTPS, bearer token stored in Secrets Manager
- Daily scan Lambda triggered by EventBridge Scheduler
- Encrypted S3 bucket for finding history between runs
- ECR repository with immutable tags
-
Read-only IAM role from
iam_policy.json
cd deploy/aws
tofu init
tofu apply -var 'scan_regions=["us-east-1"]' -var 'llm_model=anthropic/claude-sonnet-5-5'| Variable | Default | |
|---|---|---|
region |
us-east-1 |
Where infralens runs |
scan_regions |
["us-east-1"] |
Regions to scan |
deploy_server / deploy_agent
|
true / true
|
Turn either part off |
schedule |
cron(0 7 ? * MON-FRI *) |
Watch mode schedule |
schedule_timezone |
America/Chicago |
|
llm_model |
empty | LiteLLM model for summaries |
agent_secrets |
{} |
API keys, Slack webhook, GitHub token (stored in Secrets Manager) |
github_repo |
empty | Where to open report issues |
See deploy/aws/README.md for building and pushing the image.
kubectl apply -f deploy/kubernetes/rbac.yamlCreates a namespace, a service account and a get/list-only ClusterRole bound to it. Run infralens in-cluster with that account, or point it at a kubeconfig that uses it.
docker build -t infralens .
docker run -p 127.0.0.1:8080:8080 -e INFRALENS_API_TOKEN=... -e INFRALENS_PROVIDERS=aws infralensThe image runs as a non-root user and serves Streamable HTTP on port 8080.