Block Device Mappings

0

AMI contains Block Device Mappings information in addition to EBS snapshot and authorization details. Block device mappings, as I understand basically has mapping to block devices (EBS for example) that will be attached to instance upon start up.

My question is - EBS volumes cannot be attached to more than one instance. If I use AMI to launch more than one instance, how does block device mappings help?

2 Answers
0

The advantage of launching an instance from an AMI is that besides mapping to EBS's, the OS and subnet are also mapped. By using AMI, you can easily create the same server on EC2.

For more details, please check here. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html

You can also use shared AMIs or https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/sharing-amis.html There are also AMIs available for a fee. https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/paid-amis.html

answered a year ago
0

BlockDeviceMappings, can be a property of the AMI. Examples are definition for the boot volume. You can also specify BlockDeviceMappings in the run-instances api call. Let's say you want to launch a ec2 instance with a multiple EBS volumes. You can specify this BlockDeviceMappings in the run-instances call rather than mapped in the AMI itself.

AWS
MODERATOR
philaws
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions