How to use the installer.resources.pacbot_app.ecs_task_defintions.BaseTaskDefinition function in installer

To help you get started, we’ve selected a few installer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
DEPENDS_ON = [UIDockerImageBuild]


class ConfigEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "config"
    container_definitions = container_def.get_container_definitions('config')
    DEPENDS_ON = [APIDockerImageBuild]


class AdminEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "admin"
    container_definitions = container_def.get_container_definitions('admin')
    DEPENDS_ON = [APIDockerImageBuild]


class ComplianceEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "compliance"
    container_definitions = container_def.get_container_definitions('compliance')
    DEPENDS_ON = [APIDockerImageBuild]


class NotificationsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "notifications"
    container_definitions = container_def.get_container_definitions('notifications')
    DEPENDS_ON = [APIDockerImageBuild]


class StatisticsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "statistics"
    container_definitions = container_def.get_container_definitions('statistics')
    DEPENDS_ON = [APIDockerImageBuild]
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
class NginxEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "webapp"
    container_name = "nginx"
    container_definitions = container_def.get_container_definitions('nginx')
    cpu = 512
    memory = 1024
    DEPENDS_ON = [UIDockerImageBuild]


class ConfigEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "config"
    container_definitions = container_def.get_container_definitions('config')
    DEPENDS_ON = [APIDockerImageBuild]


class AdminEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "admin"
    container_definitions = container_def.get_container_definitions('admin')
    DEPENDS_ON = [APIDockerImageBuild]


class ComplianceEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "compliance"
    container_definitions = container_def.get_container_definitions('compliance')
    DEPENDS_ON = [APIDockerImageBuild]


class NotificationsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "notifications"
    container_definitions = container_def.get_container_definitions('notifications')
    DEPENDS_ON = [APIDockerImageBuild]
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
DEPENDS_ON = [APIDockerImageBuild]


class AssetEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "asset"
    container_definitions = container_def.get_container_definitions('asset')
    DEPENDS_ON = [APIDockerImageBuild]


class AuthEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "auth"
    container_definitions = container_def.get_container_definitions('auth')
    DEPENDS_ON = [APIDockerImageBuild]


class VulnerabilityEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "vulnerability"
    container_definitions = container_def.get_container_definitions('vulnerability')
    DEPENDS_ON = [APIDockerImageBuild]
    PROCESS = need_to_deploy_vulnerability_service()
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
from resources.pacbot_app.utils import need_to_deploy_vulnerability_service


container_def = ContainerDefinitions()


class BaseTaskDefinition:
    requires_compatibilities = ["FARGATE"]
    network_mode = "awsvpc"
    cpu = 2048
    memory = 4096
    execution_role_arn = ECSRole.get_output_attr('arn')
    task_role_arn = ECSRole.get_output_attr('arn')


class NginxEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "webapp"
    container_name = "nginx"
    container_definitions = container_def.get_container_definitions('nginx')
    cpu = 512
    memory = 1024
    DEPENDS_ON = [UIDockerImageBuild]


class ConfigEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "config"
    container_definitions = container_def.get_container_definitions('config')
    DEPENDS_ON = [APIDockerImageBuild]


class AdminEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "admin"
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
DEPENDS_ON = [APIDockerImageBuild]


class StatisticsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "statistics"
    container_definitions = container_def.get_container_definitions('statistics')
    DEPENDS_ON = [APIDockerImageBuild]


class AssetEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "asset"
    container_definitions = container_def.get_container_definitions('asset')
    DEPENDS_ON = [APIDockerImageBuild]


class AuthEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "auth"
    container_definitions = container_def.get_container_definitions('auth')
    DEPENDS_ON = [APIDockerImageBuild]


class VulnerabilityEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "vulnerability"
    container_definitions = container_def.get_container_definitions('vulnerability')
    DEPENDS_ON = [APIDockerImageBuild]
    PROCESS = need_to_deploy_vulnerability_service()
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
DEPENDS_ON = [APIDockerImageBuild]


class NotificationsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "notifications"
    container_definitions = container_def.get_container_definitions('notifications')
    DEPENDS_ON = [APIDockerImageBuild]


class StatisticsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "statistics"
    container_definitions = container_def.get_container_definitions('statistics')
    DEPENDS_ON = [APIDockerImageBuild]


class AssetEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "asset"
    container_definitions = container_def.get_container_definitions('asset')
    DEPENDS_ON = [APIDockerImageBuild]


class AuthEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "auth"
    container_definitions = container_def.get_container_definitions('auth')
    DEPENDS_ON = [APIDockerImageBuild]


class VulnerabilityEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "vulnerability"
    container_definitions = container_def.get_container_definitions('vulnerability')
    DEPENDS_ON = [APIDockerImageBuild]
    PROCESS = need_to_deploy_vulnerability_service()
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
cpu = 2048
    memory = 4096
    execution_role_arn = ECSRole.get_output_attr('arn')
    task_role_arn = ECSRole.get_output_attr('arn')


class NginxEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "webapp"
    container_name = "nginx"
    container_definitions = container_def.get_container_definitions('nginx')
    cpu = 512
    memory = 1024
    DEPENDS_ON = [UIDockerImageBuild]


class ConfigEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "config"
    container_definitions = container_def.get_container_definitions('config')
    DEPENDS_ON = [APIDockerImageBuild]


class AdminEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "admin"
    container_definitions = container_def.get_container_definitions('admin')
    DEPENDS_ON = [APIDockerImageBuild]


class ComplianceEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "compliance"
    container_definitions = container_def.get_container_definitions('compliance')
    DEPENDS_ON = [APIDockerImageBuild]
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
DEPENDS_ON = [APIDockerImageBuild]


class AdminEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "admin"
    container_definitions = container_def.get_container_definitions('admin')
    DEPENDS_ON = [APIDockerImageBuild]


class ComplianceEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "compliance"
    container_definitions = container_def.get_container_definitions('compliance')
    DEPENDS_ON = [APIDockerImageBuild]


class NotificationsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "notifications"
    container_definitions = container_def.get_container_definitions('notifications')
    DEPENDS_ON = [APIDockerImageBuild]


class StatisticsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "statistics"
    container_definitions = container_def.get_container_definitions('statistics')
    DEPENDS_ON = [APIDockerImageBuild]


class AssetEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "asset"
    container_definitions = container_def.get_container_definitions('asset')
    DEPENDS_ON = [APIDockerImageBuild]
github tmobile / pacbot / installer / resources / pacbot_app / ecs_task_defintions.py View on Github external
DEPENDS_ON = [APIDockerImageBuild]


class ComplianceEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "compliance"
    container_definitions = container_def.get_container_definitions('compliance')
    DEPENDS_ON = [APIDockerImageBuild]


class NotificationsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "notifications"
    container_definitions = container_def.get_container_definitions('notifications')
    DEPENDS_ON = [APIDockerImageBuild]


class StatisticsEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "statistics"
    container_definitions = container_def.get_container_definitions('statistics')
    DEPENDS_ON = [APIDockerImageBuild]


class AssetEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "asset"
    container_definitions = container_def.get_container_definitions('asset')
    DEPENDS_ON = [APIDockerImageBuild]


class AuthEcsTaskDefinition(ECSTaskDefinitionResource, BaseTaskDefinition):
    family = "auth"
    container_definitions = container_def.get_container_definitions('auth')
    DEPENDS_ON = [APIDockerImageBuild]