Practical overview
When it fits
Use it when you want a code-defined AWS deployment pattern for JumpStart model serving and can work with Python, CDK, and AWS account and Region setup.
Who it is for
- Developers building AWS infrastructure for SageMaker JumpStart model serving.
- Teams exploring an API-backed web application architecture for hosted generative models.
Documented uses
- Define repeatable cloud infrastructure for JumpStart generative-model endpoints.
- Expose hosted models to a web application or other clients through API Gateway and Lambda.
- Study a sample architecture combining model endpoints, application hosting, and a client interface.
Requirements & limits
The repository is public and lists an MIT-0 license.
- The sample deploys models from SageMaker JumpStart rather than supplying a model.
- The README’s example uses Stable Diffusion and FLAN-T5-XL.
- The described application stack includes ECS with Fargate and an Application Load Balancer; model requests pass through API Gateway and Lambda.
- The README describes the API Gateway endpoints in this example as publicly accessible.
- The project is written in Python and requires AWS CDK bootstrapping for the deployment account and Region.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare the CDK project environment
Set up the documented Python environment and bootstrap AWS CDK for the account and Region where you plan to work.
Before you start
- Python 3 and pip
- The repository and its requirements.txt file
- An AWS account and a target Region for CDK bootstrapping
Steps
Create a virtual environment with the command below and activate it; on Windows, use
.venv\Scripts\activate.bat.python3 -m venv .venvUpgrade pip with the command below.
python3 -m pip install --upgrade pipInstall project dependencies with the command below.
pip install -r requirements.txtRun
cdk bootstrapfor the default Region, orcdk bootstrap aws://ACCOUNT-NUMBER/REGIONfor a specified account and Region.
Expected outcome
The Python dependencies are installed and the selected AWS account and Region are bootstrapped for CDK applications.
Guide limitations
- This covers preparation only; it does not deploy the application.
- AWS account and Region details must be supplied for a non-default target.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 October 2026
- Original website title
- aws-samples/generative-ai-sagemaker-cdk-demo · Official homepage title · retained in its source language

