Last active
March 20, 2020 00:44
-
-
Save omerxx/6ce85b6b645aa47b7ed3c554a05ad970 to your computer and use it in GitHub Desktop.
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 | |
Properties: | |
Cpu: !Ref VCpu | |
RequiresCompatibilities: | |
- !Ref RequiresCompatibilities | |
Family: !Ref ServiceName | |
NetworkMode: !Ref NetworkMode | |
ExecutionRoleArn: arn:aws:iam::000:role/EcsTaskExecutionRole | |
TaskRoleArn: arn:aws:iam::000:role/EcsTaskExecutionRole | |
Memory: !Ref Memory | |
ContainerDefinitions: | |
- Name: !Sub ${ServiceName}-container | |
Essential: true | |
Image: !Ref DockerImage | |
PortMappings: | |
- ContainerPort: !Ref ContainerPort | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-group: !Ref ServiceName | |
awslogs-region: !Ref AWS::Region | |
awslogs-stream-prefix: !Ref ServiceName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment