1

We are using CloudFormation to create an EC2 machine using AWS::AutoScaling::LaunchConfiguration, but we never really specified the BlockDeviceMapping to use:

Type: AWS::AutoScaling::LaunchConfiguration
Properties: 
  AssociatePublicIpAddress: 'false'
  ImageId: 'some-image-id'
  InstanceType: 'some-instance-type (e.g. t2.large)' 
  KeyName: String
  SecurityGroups: 'some-security-group'
  IamInstanceProfile: 'some-iam-instance-profile'
  UserData: 'some commands to execute'

The official documentation states that the BlockDeviceMappings are not required, but it does not state what the default value will be when we do not specify one.

What will be the default EBS created when the BlockDeviceMappings property is not filled in?

Titulum
  • 9,928
  • 11
  • 41
  • 79
  • 1
    What is your question about ? If not specified, the default value will be the mapping specified in the AMI used in the launch template. – WalKh Jul 24 '19 at 08:51
  • 1
    Indeed, I just noticed it on [the documentation page for EC2](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-blockdevicemappings). If you post your comment as answer, I will approve it as the correct one. – Titulum Jul 24 '19 at 08:52

1 Answers1

2

If not specified, the default value will be the mapping specified in the AMI used in the launch template, as specified on the documentation page for AWS::EC2::Instance.

Titulum
  • 9,928
  • 11
  • 41
  • 79
WalKh
  • 462
  • 3
  • 8