This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TaskDefinition: | |
Type: AWS::ECS::TaskDefinition | |
DependsOn: CloudWatchLogsGroup | |
Properties: | |
Family: !Ref 'ServiceNameClient' | |
Cpu: !Ref 'ContainerCpu' | |
Memory: !Ref 'ContainerMemory' | |
NetworkMode: awsvpc | |
RequiresCompatibilities: | |
- FARGATE | |
- EC2 | |
ExecutionRoleArn: | |
Fn::ImportValue: | |
!Join [':', [!Ref 'StackName', 'ECSTaskExecutionRole']] | |
TaskRoleArn: | |
Fn::If: | |
- 'HasCustomRole' | |
- !Ref 'Role' | |
- !Ref 'AWS::NoValue' | |
ContainerDefinitions: | |
- Name: nlp-client | |
Cpu: 256 | |
Memory: 1024 | |
Image: !Join ['.', [!Ref 'AWS::AccountId', 'dkr.ecr', !Ref 'AWS::Region', 'amazonaws.com/nlp-client:1.1.0']] | |
PortMappings: | |
- ContainerPort: !Ref ContainerPortClient | |
Essential: true | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-region: !Ref AWS::Region | |
awslogs-group: !Ref CloudWatchLogsGroup | |
awslogs-stream-prefix: ecs | |
Environment: | |
- Name: NLP_CLIENT_PORT | |
Value: !Ref ContainerPortClient | |
- Name: RAKE_ENDPOINT | |
Value: !Join [':', ['http://localhost', !Ref ContainerPortRake]] | |
- Name: PROSE_ENDPOINT | |
Value: !Join [':', ['http://localhost', !Ref ContainerPortProse]] | |
- Name: LANG_ENDPOINT | |
Value: !Join [':', ['http://localhost', !Ref ContainerPortLang]] | |
- Name: API_KEY | |
Value: !Ref ApiKey | |
- Name: rake-app | |
Cpu: 256 | |
Memory: 1024 | |
Image: !Join ['.', [!Ref VendorAccountId, 'dkr.ecr', !Ref VendorEcrRegion, 'amazonaws.com/rake-app:1.1.0']] | |
Essential: true | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-region: !Ref AWS::Region | |
awslogs-group: !Ref CloudWatchLogsGroup | |
awslogs-stream-prefix: ecs | |
Environment: | |
- Name: RAKE_PORT | |
Value: !Ref ContainerPortRake | |
- Name: API_KEY | |
Value: !Ref ApiKey | |
- Name: prose-app | |
Cpu: 256 | |
Memory: 1024 | |
Image: !Join ['.', [!Ref 'AWS::AccountId', 'dkr.ecr', !Ref 'AWS::Region', 'amazonaws.com/prose-app:1.1.0']] | |
Essential: true | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-region: !Ref AWS::Region | |
awslogs-group: !Ref CloudWatchLogsGroup | |
awslogs-stream-prefix: ecs | |
Environment: | |
- Name: PROSE_PORT | |
Value: !Ref ContainerPortProse | |
- Name: API_KEY | |
Value: !Ref ApiKey | |
- Name: lang-app | |
Cpu: 256 | |
Memory: 1024 | |
Image: !Join ['.', [!Ref 'AWS::AccountId', 'dkr.ecr', !Ref 'AWS::Region', 'amazonaws.com/lang-app:1.1.0']] | |
Essential: true | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-region: !Ref AWS::Region | |
awslogs-group: !Ref CloudWatchLogsGroup | |
awslogs-stream-prefix: ecs | |
Environment: | |
- Name: LANG_PORT | |
Value: !Ref ContainerPortLang | |
- Name: API_KEY | |
Value: !Ref ApiKey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment