AsteriK
AsteriK

Reputation: 39

Attach volume to windows ec2 instance using cloud formation script

We are using using cloud formation script to create and setup a windows instance for our application. Instance is created using AWS::AutoScaling::LaunchConfiguration.

Now we have a requirement to attach a previously created volume to this instance using the same cloud formation script. Tried using AWS::EC2::VolumeAttachment but was unsuccessful as we do not have the instance id information that is required.

Any inputs?

Upvotes: 0

Views: 338

Answers (1)

Chris Pollard
Chris Pollard

Reputation: 1780

My suggestion would be that the AMI which you're using to launch your ASG members should include this volume as part of the image if possible.

Upvotes: 0

Related Questions