-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
36 lines (29 loc) · 1005 Bytes
/
app.py
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
32
33
34
35
36
import os
from aws_cdk import App, Environment
from rich import print
from cdk_clearml.stack import ClearMLStack
from cdk_clearml.utils.aws_account_info import get_aws_account_id
AWS_ACCOUNT_ID: str = get_aws_account_id()
CDK_ENV = Environment(account=AWS_ACCOUNT_ID, region=os.getenv("AWS_REGION", "us-west-2"))
print("App settings")
print(
{
"AWS_ACCESS_KEY_ID": "set" if os.getenv("AWS_ACCESS_KEY_ID") else "unset",
"AWS_SECRET_ACCESS_KEY": "set" if os.getenv("AWS_SECRET_ACCESS_KEY") else "unset",
"AWS_PROFILE": os.getenv("AWS_PROFILE", "unset"),
"AWS_ACCOUNT_ID": AWS_ACCOUNT_ID,
"AWS_REGION": CDK_ENV.region,
}
)
APP = App()
ClearMLStack(
APP,
"clearml-2",
top_level_domain_name="sbox.sbox.ai.muyben.tech",
# top_level_domain_name="mlops-tools.ai.muyben.tech",
# vpc_name="MlOpsMLFlowCDKStack/fMlOpsMLFlowCDKStack-vpc",
# vpc_name="ben-networked-vpc",
vpc_name="network-default-vpc",
env=CDK_ENV,
)
APP.synth()