You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,6 +16,145 @@ Before deploying, ensure the following tools and resources are available:
16
16
17
17
---
18
18
19
+
## ποΈ Stacks Overview
20
+
21
+
This CDK application deploys multiple stacks that work together to provide the complete Model Runner infrastructure. Understanding what each stack creates will help you plan your deployment and manage resources effectively.
22
+
23
+
### NetworkStack (`<project-name>-Network`)
24
+
25
+
The **NetworkStack** provides the foundational networking infrastructure that all other stacks depend on. It manages VPC creation or import and network security.
26
+
27
+
**Resources Created:**
28
+
29
+
-**VPC**: Either creates a new VPC or imports an existing one based on configuration
30
+
- New VPCs include public and private subnets across 2 availability zones
31
+
- CIDR block: `10.0.0.0/16` (configurable)
32
+
- Internet Gateway for public subnets
33
+
- NAT Gateway for private subnet egress
34
+
-**Security Groups**: Network security rules for Model Runner services
35
+
-**VPC Flow Logs**: Network traffic logging (enabled for production-like environments)
36
+
-**Subnet Selection**: Configures which subnets to use for resource deployment
37
+
38
+
**Key Features:**
39
+
40
+
- Can import existing VPCs to integrate with your existing network infrastructure
41
+
- Supports custom subnet and security group selection
42
+
- Automatically configures proper routing for public and private subnets
The **ModelRunnerStack** deploys the core Model Runner dataplane - the main application infrastructure that processes geospatial imagery and runs ML models.
The **IntegrationTestStack** deploys test infrastructure for development and integration testing. This stack is only deployed when `deployIntegrationTests: true` in your configuration.
113
+
114
+
**Resources Created:**
115
+
116
+
#### **Test Imagery**
117
+
118
+
-**S3 Bucket**: Dedicated bucket for storing test imagery files
119
+
-**Bucket Deployment**: Automatically uploads test images from local `cdk/assets/imagery/` directory
120
+
-**Encryption**: Server-side encryption enabled
121
+
-**Access Control**: Private bucket with proper IAM permissions
122
+
123
+
#### **Test Models**
124
+
125
+
-**SageMaker Endpoints**:
126
+
-**Centerpoint Endpoint**: Object detection model endpoint
127
+
-**Flood Endpoint**: Flood detection model endpoint
The **SageMakerRoleStack** creates a dedicated IAM role for SageMaker endpoints. This is deployed separately to ensure proper cleanup of network interfaces when endpoints are deleted.
145
+
146
+
**Resources Created:**
147
+
148
+
-**IAM Role**: SageMaker execution role with permissions for:
149
+
- Accessing S3 buckets
150
+
- CloudWatch logging
151
+
- VPC network access
152
+
- Model artifact access
153
+
154
+
**Note**: This stack exists as a workaround for a CloudFormation limitation with SageMaker endpoint cleanup. It ensures network interfaces are properly cleaned up when endpoints are deleted.
0 commit comments