blob: b0726f4a8e4078892300ec01dd469daeb15f0489 [file] [log] [blame]
heat_template_version: queens
parameters:
volume_size:
type: number
description: Size of volume to attach to instance
default: 30
volume_type:
type: string
description: The type of the volume mapping to a backend, if any.
default: standard-iops
instance_id:
type: string
description: Server to attach volume to
resources:
volume:
type: OS::Cinder::Volume
properties:
volume_type: { get_param: volume_type }
size: { get_param: volume_size }
description: Volume for stack
volume_attachment:
type: OS::Cinder::VolumeAttachment
properties:
volume_id: { get_resource: volume }
instance_uuid: { get_param: instance_id }