Skip to content

Instantly share code, notes, and snippets.

@omerxx
Created December 7, 2017 23:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save omerxx/ec3c1be72337a63cc4ad08ff1a48f7b5 to your computer and use it in GitHub Desktop.
Save omerxx/ec3c1be72337a63cc4ad08ff1a48f7b5 to your computer and use it in GitHub Desktop.
Resources:
Service:
Type: AWS::ECS::Service
DependsOn: ListenerRule
Properties:
Cluster: !Ref Cluster
ServiceName: !Ref ServiceName
LaunchType: !Ref LaunchType
DesiredCount: !Ref DesiredCount
DeploymentConfiguration:
MaximumPercent: !Ref DeploymentMaximumPercent
MinimumHealthyPercent: !Ref DeploymentMinimumHealthyPercent
TaskDefinition: !Ref TaskDefinition
LoadBalancers:
- ContainerName: !Sub ${ServiceName}-container
ContainerPort: !Ref ContainerPort
TargetGroupArn: !Ref TargetGroup
NetworkConfiguration:
AwsvpcConfiguration:
AssignPublicIp: DISABLED
SecurityGroups:
- !Ref ECSHostSecurityGroup
Subnets:
- !Ref PrivateSubnet1
- !Ref PrivateSubnet2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment