mirror of
				https://github.com/yeslayla/aws-cluster-stack.git
				synced 2025-10-30 22:53:08 +01:00 
			
		
		
		
	Update ami
This commit is contained in:
		
							
								
								
									
										5
									
								
								top.yaml
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								top.yaml
									
									
									
									
									
								
							| @ -14,6 +14,9 @@ Parameters: | |||||||
|   Environment: |   Environment: | ||||||
|     Type: String |     Type: String | ||||||
|     Description: Environment used in naming and tagging to associate with cluster |     Description: Environment used in naming and tagging to associate with cluster | ||||||
|  |   LatestAmiId : | ||||||
|  |     Type : 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>' | ||||||
|  |     Default: '/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id' | ||||||
|  |  | ||||||
| Resources: | Resources: | ||||||
|   EcsCluster: |   EcsCluster: | ||||||
| @ -88,7 +91,7 @@ Resources: | |||||||
|   EcsInstanceLc: |   EcsInstanceLc: | ||||||
|     Type: AWS::AutoScaling::LaunchConfiguration |     Type: AWS::AutoScaling::LaunchConfiguration | ||||||
|     Properties: |     Properties: | ||||||
|       ImageId: ami-0f7919c33c90f5b58 |       ImageId: !Ref LatestAmiId | ||||||
|       InstanceType: t2.micro |       InstanceType: t2.micro | ||||||
|       AssociatePublicIpAddress: true |       AssociatePublicIpAddress: true | ||||||
|       IamInstanceProfile: !Ref EcsRoleInstaceProfile |       IamInstanceProfile: !Ref EcsRoleInstaceProfile | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user