cvat-aws-all.yaml [614:676]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          Name: cvat-server-container
      Memory: '2048'
      TaskRoleArn: !GetAtt EcsTaskRole.Arn
      Family: cvat-cmd-task
      RequiresCompatibilities:
        - FARGATE
      NetworkMode: awsvpc
      Cpu: '1024'
      Volumes:
        - EFSVolumeConfiguration:
            FilesystemId: !Ref CVATEfs
            AuthorizationConfig:
              AccessPointId: !Ref DataAccessPoint
            TransitEncryption: ENABLED
            RootDirectory: "/"
          Name: cvat-data
        - EFSVolumeConfiguration:
            FilesystemId: !Ref CVATEfs
            AuthorizationConfig:
              AccessPointId: !Ref ShareAccessPoint
            TransitEncryption: ENABLED
            RootDirectory: "/"
          Name: cvat-share

  ServerTaskDefinition: 
    Type: AWS::ECS::TaskDefinition
    Properties:
      ExecutionRoleArn: !GetAtt EcsTaskRole.Arn
      ContainerDefinitions:
        - LogConfiguration:
            LogDriver: awslogs
            Options:
              awslogs-group: !Ref LogGroup
              awslogs-region: !Ref AWS::Region
              awslogs-stream-prefix: ecs
          PortMappings:
            - HostPort: 8080
              Protocol: tcp
              ContainerPort: 8080
          Environment:
            - Name: ADAPTIVE_AUTO_ANNOTATION
              Value: 'false'
            - Name: ALLOWED_HOSTS
              Value: "*"
            - Name: CVAT_POSTGRES_HOST
              Value: !GetAtt DBInstance.Endpoint.Address
            - Name: CVAT_POSTGRES_PASSWORD
              Value: !Ref DBPassword
            - Name: CVAT_POSTGRES_USER
              Value: !Ref DBUser
            - Name: CVAT_REDIS_HOST
              Value: !GetAtt ElasticacheCluster.RedisEndpoint.Address
            - Name: DJANGO_MODWSGI_EXTRA_ARGS
              Value: ''
            - Name: CVAT_NUCLIO_HOST
              Value: serverless.cvat.local
            - Name: CVAT_SERVERLESS
              Value: 1
          MountPoints:
            - ContainerPath: "/home/django/data"
              SourceVolume: cvat-data
            - ContainerPath: "/home/django/share"
              SourceVolume: cvat-share
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cvat-aws-ap-northeast-1-all.yaml [614:676]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          Name: cvat-server-container
      Memory: '2048'
      TaskRoleArn: !GetAtt EcsTaskRole.Arn
      Family: cvat-cmd-task
      RequiresCompatibilities:
        - FARGATE
      NetworkMode: awsvpc
      Cpu: '1024'
      Volumes:
        - EFSVolumeConfiguration:
            FilesystemId: !Ref CVATEfs
            AuthorizationConfig:
              AccessPointId: !Ref DataAccessPoint
            TransitEncryption: ENABLED
            RootDirectory: "/"
          Name: cvat-data
        - EFSVolumeConfiguration:
            FilesystemId: !Ref CVATEfs
            AuthorizationConfig:
              AccessPointId: !Ref ShareAccessPoint
            TransitEncryption: ENABLED
            RootDirectory: "/"
          Name: cvat-share

  ServerTaskDefinition: 
    Type: AWS::ECS::TaskDefinition
    Properties:
      ExecutionRoleArn: !GetAtt EcsTaskRole.Arn
      ContainerDefinitions:
        - LogConfiguration:
            LogDriver: awslogs
            Options:
              awslogs-group: !Ref LogGroup
              awslogs-region: !Ref AWS::Region
              awslogs-stream-prefix: ecs
          PortMappings:
            - HostPort: 8080
              Protocol: tcp
              ContainerPort: 8080
          Environment:
            - Name: ADAPTIVE_AUTO_ANNOTATION
              Value: 'false'
            - Name: ALLOWED_HOSTS
              Value: "*"
            - Name: CVAT_POSTGRES_HOST
              Value: !GetAtt DBInstance.Endpoint.Address
            - Name: CVAT_POSTGRES_PASSWORD
              Value: !Ref DBPassword
            - Name: CVAT_POSTGRES_USER
              Value: !Ref DBUser
            - Name: CVAT_REDIS_HOST
              Value: !GetAtt ElasticacheCluster.RedisEndpoint.Address
            - Name: DJANGO_MODWSGI_EXTRA_ARGS
              Value: ''
            - Name: CVAT_NUCLIO_HOST
              Value: serverless.cvat.local
            - Name: CVAT_SERVERLESS
              Value: 1
          MountPoints:
            - ContainerPath: "/home/django/data"
              SourceVolume: cvat-data
            - ContainerPath: "/home/django/share"
              SourceVolume: cvat-share
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



