Overview
Nova Act workflows can be deployed to AWS AgentCore Runtime for production use. The Nova Act CLI provides automated deployment handling containerization, ECR management, IAM roles, and multi-region deployments.Prerequisites
- AWS CLI: Configured with appropriate permissions
- Docker: For building containers
- Python 3.10+: For running the CLI
- AWS Permissions: IAM, ECR, AgentCore, STS access
Installation
Install the CLI with thecli extra:
Quick Start
Option 1: Named Workflow (Recommended)
Create and manage named workflows for repeated deployments:Option 2: Quick Deploy
Deploy any Python script directly:Quick deploy creates a persistent workflow with auto-generated name. The workflow remains in your configuration and can be managed with standard workflow commands.
Entry Point Requirements
The CLI uses the following entry point resolution:- Explicit specification - Use
--entry-point filename.py - Default fallback - Defaults to
main.pyif not specified
- Must be a
.pyfile - Must contain
def main(payload):function with at least one parameter - Use
--skip-entrypoint-validationto bypass validation
main.py
Skipping Validation
Bypass entry point validation for non-standard workflows:- Entry point uses dynamic function loading
- Custom parameter signatures beyond
def main(payload): - Testing experimental workflow patterns
CLI Commands
Core Workflow Commands
create
create
Register a new workflow in configuration
deploy
deploy
Build and deploy workflow to AWS AgentCore
run
run
Execute deployed workflow with payload
list
list
Show all configured workflows
show
show
Display detailed workflow information
update
update
Modify workflow configuration
delete
delete
Remove workflow from configuration
Environment Variables
Pass environment variables to your workflow at runtime using theAC_HANDLER_ENV payload field:
- Include
AC_HANDLER_ENVdictionary in your payload - AgentCore handler extracts these variables before running your workflow
- Variables are set in
os.environand available to your code
NOVA_ACT_API_KEY- Nova Act API key for browser automation- Custom API keys and credentials
- Feature flags and configuration values
IAM Role Management
Auto-Creation (Default):- Bedrock AgentCore operations
- ECR image access
- CloudWatch Logs
- X-Ray tracing
- S3 access (nova-act-* buckets)
Region and Profile Support
Deploy to different regions:The
--profile option must come before the subcommand (deploy, run, etc.)AWS Resources Created
The CLI automatically creates and manages:- ECR Repository:
nova-act-cli-default(shared across workflows) - IAM Role:
nova-act-{workflow-name}-role(unless custom role provided) - S3 Bucket:
nova-act-{account-id}-{region}(unless skipped or custom bucket specified) - AgentCore Runtime: Container-based runtime for execution
- WorkflowDefinition: Nova Act Workflow Definition
- CloudWatch Log Groups:
/aws/bedrock-agentcore/runtimes/{agent-id}-default(runtime logs)/aws/bedrock-agentcore/runtimes/{agent-id}-default/runtime-logs(OpenTelemetry logs)
Advanced Configuration
Build Configuration
~/.act_cli/builds/{workflow-name}/ and are persistent:
S3 Bucket Configuration
Default Behavior (auto-creates bucket):Workflow Definition Management
Use Existing WorkflowDefinition:Log Streaming
The--tail-logs flag streams real-time logs during workflow execution:
- Application logs (stdout/stderr from your workflow)
- OpenTelemetry logs (tracing and instrumentation)
- Streams logs in real-time until workflow completes
- Automatically handles log delays and pagination
- Ctrl+C stops tailing but doesn’t terminate workflow
Troubleshooting
Docker Build Issues
Ensure Docker is running:AWS Authentication
Verify AWS credentials:ECR Login Issues
The CLI handles ECR authentication automatically, but you can manually refresh:Common Error Scenarios
Credential Errors
Credential Errors
Permission Errors
Permission Errors
Docker Not Running
Docker Not Running
Entry Point Validation Errors
Entry Point Validation Errors
Required AWS Permissions
For full CLI functionality, see the complete IAM policy in the CLI documentation. Minimal policy for running workflows only:Next Steps
Parallel Sessions
Learn how to run multiple Nova Act instances concurrently
Authentication
Configure persistent browser state and cookies
Logging & Traces
View traces and configure logging
Error Handling
Handle errors and implement retry patterns