Skip to content

Instantly share code, notes, and snippets.

@SumindaD
Created November 9, 2019 19:22
Show Gist options
  • Save SumindaD/2453b013c09d5756b8b000a89fb06f71 to your computer and use it in GitHub Desktop.
Save SumindaD/2453b013c09d5756b8b000a89fb06f71 to your computer and use it in GitHub Desktop.
TaskDefinition:
Type: AWS::ECS::TaskDefinition
Properties:
Memory: 1024
Cpu: 512
NetworkMode: awsvpc
RequiresCompatibilities:
- 'FARGATE'
TaskRoleArn: !Ref ExecutionRole
ExecutionRoleArn: !Ref ExecutionRole
ContainerDefinitions:
- Name: !Join ['-', [!Ref Stage, !Ref 'AWS::AccountId', 'Container']]
Image: !Ref ImageURI
PortMappings:
- ContainerPort: !Ref ContainerPort
HostPort: !Ref ContainerPort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment