Skip to main content
Version: Next

Configure Infrastructure

Updated 2024.05.17

When building and operating an AI Solution, it is essential to configure the infra environment that will host and run the Solution. The infra_setup.yaml file located in the setting folder in the same path as ALO's main.py is used for such infra configuration purposes.
This file allows you to define the necessary infra information to easily register and manage AI Solutions. The information set in the infra_setup.yaml file is used when registering the solution to the AI Conductor platform.
By specifying important infra-related information such as the web server address of AI Conductor, AWS cloud region, workspace name, Docker image build method, and more, AI Solution developers or users can effectively deploy and run AI Solutions in their development or operational environments.

Topics



Configuration of Infra Setup File  

Write the infra information for registering the AI Solution in {solution_name}/setting/infra_config.yaml.

  • AIC_URL: Web server address of AI Conductor.
  • REGION: AWS Cloud region.
  • WORKSPACE_NAME: Workspace assigned by AI Conductor.
  • BUILD_METHOD: Choose one among docker, buildah, and codebuild depending on the development environment. (AWS codebuild performs the docker build through cloud infra.)
  • LOGIN_MODE: AI Conductor login method. Internal users can log in using the ldap authentication method, and there is also a static mode.
  • REPOSITORY_TAGS: Tags values to be entered when creating an ECR repository. Billing information display.
  • AWS_KEY_PROFILE: The name of the aws configure profile specifying the access & secret key used to access S3 and ECR.
  • CODEBUILD_ENV_TYPE: The build environment type used by AWS Codebuild when BUILD_METHOD=codebuild.
  • CODEBUILD_ENV_COMPUTE_TYPE: The compute type of the environment where containers are built by AWS Codebuild when BUILD_METHOD=codebuild.

If you use aws keys instead of the SA(Service Account) method, configure the aws key in the terminal as shown below, and write the profile name, alo-aws-profile, in the AWS_KEY_PROFILE of infra_config.yaml.

aws configure --profile alo-aws-profile
AWS Access Key ID : {write access key}
AWS Secret Access Key : {write secret key}
Default region name : ap-northeast-2
Default output format :

Note: There is a sample in {solution_name}/setting/example_infra_config for reference. Below is an example of setting/infra_config.yaml.

'AIC_URI': "https://aicond.meerkat-ai.com/"
"REGION": "ap-northeast-2"
"WORKSPACE_NAME": "meerkat-ws" ## Existing workspace
"BUILD_METHOD": "codebuild"
"LOGIN_MODE": "static"
"REPOSITORY_TAGS":
- "Key=Owner,Value=Mellerikat"
"AWS_KEY_PROFILE": "alo-aws-profile"
## 'type': 'WINDOWS_CONTAINER'|'LINUX_CONTAINER'|'LINUX_GPU_CONTAINER'|'ARM_CONTAINER'|'WINDOWS_SERVER_2019_CONTAINER'|'LINUX_LAMBDA_CONTAINER'|'ARM_LAMBDA_CONTAINER',
"CODEBUILD_ENV_TYPE": "LINUX_CONTAINER"
## 'computeType': 'BUILD_GENERAL1_SMALL'|'BUILD_GENERAL1_MEDIUM'|'BUILD_GENERAL1_LARGE'|'BUILD_GENERAL1_XLARGE'|'BUILD_GENERAL1_2XLARGE'|'BUILD_LAMBDA_1GB'|'BUILD_LAMBDA_2GB'|'BUILD_LAMBDA_4GB'|'BUILD_LAMBDA_8GB'|'BUILD_LAMBDA_10GB',
"CODEBUILD_ENV_COMPUTE_TYPE": "BUILD_GENERAL1_SMALL"

Below is an example of REPOSITORY_TAGS.

"REPOSITORY_TAGS":
- "Key=Company,Value=LGE"
- "Key=Owner,Value=IC360"
- "Key=HQ,Value=CDO"
- "Key=Division,Value=CDO"
- "Key=Infra Region,Value=KIC"
- "Key=Service Mode,Value=OP"
- "Key=Cost Type,Value=COMPUTING"
- "Key=Project,Value=CIS"
- "Key=Sub Project,Value=CISM"
- "Key=System,Value=AIDX"