I need to setup an EC2 instance and attach an existing EBS Volume via CloudFormation.
Currently there is an AutoScalingGroup for the EC2 instance with minsize=1
and maxsize=1
in place. I am not able to attach the EBS Volume to the LaunchConfiguration for the AutoScalingGroup. The reason is I can't find an option similar to AWS::EC2::VolumeAttachment.
Questions:
- Does the current setup with min and max 1 make any sense? The goal is to automatically recreate the VM on failure. Is there a better way?
- Can I attach an EBS Volume to the instance with CloudFormation with the current AutoScaling setup?