Ask Your Question

Heat: Attaching volumes to instances

asked 2014-08-05 10:30:30 -0500

MCo gravatar image


is there a way for attaching an already existing volume to an instance I start using heat? In other words, I don't want to create the volume to attach within the heat script, I want to attach a volume I already created before launching the heat script.

Thanks. MCo,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-05 15:00:42 -0500

zaneb gravatar image

Pass the volume ID in as a parameter, and reference it using get_param (instead of get_resource, as you would if Heat were creating the volume for you).

(Alternatively, you can hard-code the volume ID in the template if you are not planning to re-use the template for a different volume.)

edit flag offensive delete link more


It works like a charm! Thanks!

MCo gravatar imageMCo ( 2014-08-06 04:11:48 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-08-05 10:30:30 -0500

Seen: 602 times

Last updated: Aug 05 '14