blob: 75158f99f4d7157d6ce86d015088092489f6e765 [file] [log] [blame]
Mohammed Naser336caf42022-03-11 17:56:45 -05001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15heat_template_version: 2016-10-14
16
17parameters:
18 instance_uuid:
19 type: string
20
21 volume_size:
22 type: number
23
24resources:
25 volume:
26 type: OS::Cinder::Volume
27 properties:
28 size: { get_param: volume_size }
29
30 volume_attachment:
31 type: OS::Cinder::VolumeAttachment
32 properties:
33 instance_uuid: { get_param: instance_uuid }
34 volume_id: { get_resource: volume }