Implement BlockDeviceMappings for AWS::EC2::Instance

Registered by huangtianhua

Now in Heat, the AWS::EC2::Instance resource only has 'Volumes' property to
indicate the volumes to be attached, but there are two ways defining volumes
in AWSCloudFormation, 'Volumes' and 'BlockDeviceMappings', see:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html

1. 'Volumes' support the 'volume_id', user can specify the volume to be attached
   to the instance. This way has been implemented in Heat, but it's not a good way
   for batch creation because one volume can't be attached to many instances.

2. 'BlockDeviceMappings' support the 'snapshot_id', user can specify a snapshot,
   then a volume will be created from the snapshot, and the volume will be attached
   to the instance. This way is a good way for batch creation.

Nova supports to create a server with a block device mapping:

http://docs.openstack.org/api/openstack-compute/2/content/ext-os-block-device-mapping-v2-boot.html

So, we should support the 'BlockDeviceMappings' for AWS::EC2::Instance resource.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
huangtianhua
Direction:
Needs approval
Assignee:
huangtianhua
Definition:
Approved
Series goal:
Proposed for juno
Implementation:
Implemented
Milestone target:
None
Started by
huangtianhua
Completed by
huangtianhua

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/implement-ec2instance-bdm,n,z

Addressed by: https://review.openstack.org/102139
    Add specification to implement EC2 instance bdm

Addressed by: https://review.openstack.org/103725
    Implement BlockDeviceMappings for AWS::EC2::Instance

Gerrit topic: https://review.openstack.org/#q,topic:bp/implement-launchconfiguration-bdm,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bp/implement-ec2-bdm,n,z

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.