curia.infra.container.deploy module

This script deploys container tasks defined in airml_analytics

curia.infra.container.deploy.build_container_tasks(project_dir: str, tasks: List[TaskDefinition], version: str, resource_naming_config: ContainerTaskDeployResourceNamingConfig, build_args: List[List[str]] | None = None, cache_from_ecr: bool = False) None

Builds all tasks as docker containers :param project_dir: Project directory :param tasks: List of tasks to build :param version: Version to tag the docker containers with :param resource_naming_config: Resource naming config :param build_args: List of build args to pass to docker :param cache_from_ecr: If true, will pull the latest version of the task from ECR before building and use that

as the cache and prep the task for deployment to ECR

Returns:

curia.infra.container.deploy.deploy_container_tasks(tasks: List[TaskDefinition], version: str, env: str, ecs_task_role: str, ecs_execution_role: str, batch_job_role: str, resource_naming_config: ContainerTaskDeployResourceNamingConfig) None

Deploys all tasks as docker containers :param tasks: List of tasks to deploy :param version: The version to label the deployed containers with :param env: The environment to deploy to :param ecs_task_role: The role to use for the ECS tasks :param ecs_execution_role: The role to use for the ECS execution :param batch_job_role: The role to use for the batch jobs :param resource_naming_config: The resource naming config to use :return:

curia.infra.container.deploy.get_boto3_client(service)