Hi I am working on AWS CDK. I am creating ECS. I have created auto scaling group as below.
autoScallingGroup=asg.AutoScalingGroup(self, id = "auto scalling", vpc= vpc, machine_image=ecs.EcsOptimizedImage.amazon_linux(), desired_capacity=1, key_name="mws-location", max_capacity=1, min_capacity=1, instance_type=ec2.InstanceType("t2.xlarge"))
This will generate default launch configuration also. I want to write my own launch configuration for this auto scaling group.
Can someone help me to fix this? Any help would be appreciated. Thanks