mirror of
				https://github.com/yeslayla/aws-cluster-stack.git
				synced 2025-10-30 14:43:07 +01:00 
			
		
		
		
	Expose ASG parameters
This commit is contained in:
		
							
								
								
									
										16
									
								
								top.yaml
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								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}" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user