Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29258

Attach EBS volume to AutoScalingGroup

$
0
0

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?

Viewing all articles
Browse latest Browse all 29258

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>