Created
December 7, 2017 23:05
-
-
Save omerxx/ec3c1be72337a63cc4ad08ff1a48f7b5 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
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