mirror of
https://github.com/yeslayla/aws-cluster-stack.git
synced 2025-01-14 04:53:30 +01:00
Expose ASG parameters
This commit is contained in:
parent
9160ec0f34
commit
08a047d1e0
16
top.yaml
16
top.yaml
@ -20,7 +20,15 @@ Parameters:
|
|||||||
InstanceType:
|
InstanceType:
|
||||||
Type: String
|
Type: String
|
||||||
Default: "t3.micro"
|
Default: "t3.micro"
|
||||||
|
AsgMinSize:
|
||||||
|
Type: Number
|
||||||
|
Default: 0
|
||||||
|
AsgMaxSize:
|
||||||
|
Type: Number
|
||||||
|
Default: 1
|
||||||
|
AsgDesiredCapacity:
|
||||||
|
Type: Number
|
||||||
|
Default: 1
|
||||||
Resources:
|
Resources:
|
||||||
EcsCluster:
|
EcsCluster:
|
||||||
Type: AWS::ECS::Cluster
|
Type: AWS::ECS::Cluster
|
||||||
@ -117,9 +125,9 @@ Resources:
|
|||||||
Properties:
|
Properties:
|
||||||
VPCZoneIdentifier: !Ref SubnetIds
|
VPCZoneIdentifier: !Ref SubnetIds
|
||||||
LaunchConfigurationName: !Ref EcsInstanceLc
|
LaunchConfigurationName: !Ref EcsInstanceLc
|
||||||
MinSize: 0
|
MinSize: !Ref AsgMinSize
|
||||||
MaxSize: 1
|
MaxSize: !Ref AsgMaxSize
|
||||||
DesiredCapacity: 1
|
DesiredCapacity: !Ref AsgDesiredCapacity
|
||||||
Tags:
|
Tags:
|
||||||
- Key: Name
|
- Key: Name
|
||||||
Value: !Sub "${Project}-ECS-ASG-${Environment}"
|
Value: !Sub "${Project}-ECS-ASG-${Environment}"
|
||||||
|
Loading…
Reference in New Issue
Block a user