Skip to content

Instantly share code, notes, and snippets.

@omerxx
Last active March 20, 2020 00:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save omerxx/6ce85b6b645aa47b7ed3c554a05ad970 to your computer and use it in GitHub Desktop.
Save omerxx/6ce85b6b645aa47b7ed3c554a05ad970 to your computer and use it in GitHub Desktop.
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