From 08a047d1e00a099c12731ff62f48f289221c80aa Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Wed, 29 Jul 2020 14:02:14 -0400 Subject: [PATCH] Expose ASG parameters --- top.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/top.yaml b/top.yaml index 9a1b980..36ef9d7 100644 --- a/top.yaml +++ b/top.yaml @@ -20,7 +20,15 @@ Parameters: InstanceType: Type: String Default: "t3.micro" - + AsgMinSize: + Type: Number + Default: 0 + AsgMaxSize: + Type: Number + Default: 1 + AsgDesiredCapacity: + Type: Number + Default: 1 Resources: EcsCluster: Type: AWS::ECS::Cluster @@ -117,9 +125,9 @@ Resources: Properties: VPCZoneIdentifier: !Ref SubnetIds LaunchConfigurationName: !Ref EcsInstanceLc - MinSize: 0 - MaxSize: 1 - DesiredCapacity: 1 + MinSize: !Ref AsgMinSize + MaxSize: !Ref AsgMaxSize + DesiredCapacity: !Ref AsgDesiredCapacity Tags: - Key: Name Value: !Sub "${Project}-ECS-ASG-${Environment}"