-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
33 lines (23 loc) · 909 Bytes
/
constants.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
import os
import helper_functions.constant_helpers as const_helpers
import aws_cdk as cdk
CDK_ENV = cdk.Environment(
account=os.environ["CDK_DEFAULT_ACCOUNT"], region=os.environ["CDK_DEFAULT_REGION"]
)
print("CDK Environment")
print(CDK_ENV)
CDK_APP_NAME = "text-vision-llm"
CDK_APP_PYTHON_VERSION = "3.10"
CDK_PARTITION="aws"
CDK_ACCOUNT=CDK_ENV.account
CDK_REGION=CDK_ENV.region
GITHUB_CONNECTION_ARN = const_helpers.find_CodeStarARN(CDK_ACCOUNT)
GITHUB_OWNER = "ivansmith7795"
GITHUB_ORG = "ivansmith7795"
GITHUB_REPO = "text-vision-llm"
GITHUB_TRUNK_BRANCH = const_helpers.find_repo_branch(CDK_ACCOUNT)
DEPLOY_ENV = const_helpers.find_branch(CDK_ACCOUNT)
PIPELINE_ENV = cdk.Environment(account=CDK_ACCOUNT, region=CDK_REGION)
VPC_ID = const_helpers.find_VPCID(CDK_ACCOUNT)
DEV_ENV = cdk.Environment(account=CDK_ACCOUNT, region=CDK_REGION)
S3_MODELS_BUCKET = f"text-vision-llm-model-bucket"