Skip to content

Development Environment Setup Guide on Windows (Native)

Development Environment Setup Guide on Windows (Native)

Section titled “Development Environment Setup Guide on Windows (Native)”

This guide establishes a native Windows development environment for the GenAI IDP accelerator using PowerShell, Git Bash, or Windows Terminal.

Purpose: Provides a straightforward setup process for Windows users who prefer native tools over WSL, ensuring compatibility with the project’s AWS infrastructure.

When to use this guide:

  • You’re developing on Windows and want to use native Windows tools
  • You prefer PowerShell or Git Bash over WSL
  • You want a lightweight setup without Linux emulation

Alternative: If you prefer a Linux environment on Windows, see Setup Guide for WSL.

  1. Python 3.12 or higher

    • Download from: https://www.python.org/downloads/
    • ⚠️ Important: Check “Add Python to PATH” during installation
    • Verify: python --version or python3 --version
  2. Node.js 22.12 or higher

    • Download from: https://nodejs.org/
    • Installs both Node.js and npm
    • Verify: node --version and npm --version
  3. Git for Windows

  4. AWS CLI v2

  5. AWS SAM CLI

  6. Docker Desktop (optional, for local Lambda testing)

Open PowerShell, Git Bash, or Windows Terminal:

Terminal window
git clone https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws.git
cd accelerated-intelligent-document-processing-on-aws

Using PowerShell:

Terminal window
# Create virtual environment
python -m venv .venv
# Activate virtual environment
.\.venv\Scripts\Activate.ps1
# If you get an execution policy error, run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Using Git Bash:

Terminal window
# Create virtual environment
python -m venv .venv
# Activate virtual environment
source .venv/Scripts/activate

You should see (.venv) at the beginning of your prompt when activated.

⚠️ Critical: Install packages in this exact order to avoid “No such command” errors.

Terminal window
pip install -e lib/idp_common_pkg
pip install -e lib/idp_sdk
pip install -e lib/idp_cli_pkg

Note: This installs the idp-cli command along with all required Python dependencies.

Refer to: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-quickstart.html

Terminal window
aws configure
Terminal window
idp-cli publish --help

Standard build and publish:

Terminal window
idp-cli publish --source-dir . --region us-east-1

If the build fails, use the --verbose flag to see detailed error messages:

Terminal window
idp-cli publish --source-dir . --region us-east-1 --verbose

The verbose flag will show:

  • Exact SAM build commands being executed
  • Complete error output from failed builds
  • Python version compatibility issues
  • Missing dependencies or configuration problems

Note: The legacy publish.py script is deprecated. Use idp-cli publish for all new builds.