-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathapp.py
More file actions
31 lines (23 loc) · 737 Bytes
/
app.py
File metadata and controls
31 lines (23 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
# vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab
import os
import aws_cdk as cdk
from cdk_stacks import (
ASRHuggingFaceRealtimeEndpointStack,
SageMakerRealtimeEndpointAutoScalingStack
)
APP_ENV = cdk.Environment(
account=os.environ["CDK_DEFAULT_ACCOUNT"],
region=os.environ["CDK_DEFAULT_REGION"]
)
app = cdk.App()
sm_asr_endpoint = ASRHuggingFaceRealtimeEndpointStack(app, 'ASRHuggingFaceRealtimeEndpointStack',
env=APP_ENV
)
sm_asr_endpoint_autoscale = SageMakerRealtimeEndpointAutoScalingStack(app, 'ASRRealtimeEndpointAutoScalingStack',
sm_asr_endpoint.sagemaker_endpoint,
env=APP_ENV
)
sm_asr_endpoint_autoscale.add_dependency(sm_asr_endpoint)
app.synth()