1

我们正在使用 CloudFormation 创建一EC2台使用的机器AWS::AutoScaling::LaunchConfiguration,但我们从未真正指定BlockDeviceMapping要使用的机器:

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'

官方文档声明不是必需的BlockDeviceMappings,但它没有说明当我们不指定时默认值是什么。

BlockDeviceMappings未填写属性时,默认创建的 EBS是什么?

4

1 回答 1

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.

于 2019-07-24T08:55:05.620 回答