简体   繁体   English

Cloudformation模板提供了“该实例类型当前不支持虚拟化类型为'hvm'的非Windows实例

[英]Cloudformation template gives " Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type

I wrote a simple cloudformation template that should create an EC2 isntance on AWS. 我编写了一个简单的cloudformation模板,该模板应在AWS上创建EC2距离。

Cloudformation template gives " Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type." Cloudformation模板提供了“该实例类型当前不支持虚拟化类型为'hvm'的非Windows实例。” I looked up on this forum and they said "InstanceType" is missing. 我在这个论坛上查询,他们说“ InstanceType”丢失了。 I am brand new to Cloud formation . 我是Cloud形成的新手。 Where should I put "InstanceTyp"? 我应该在哪里放置“ InstanceTyp”? thanks much { "AWSTemplateFormatVersion" : "2010-09-09", 非常感谢{“ AWSTemplateFormatVersion”:“ 2010-09-09”,

       "Description" : "AWS CloudFormation Sample Template EC2InstanceSample: Create an Amazon EC2 instance running the Amazon Linux AMI. The AMI is chosen based on the region in which the stack is run. This example uses the default security group, so to SSH to the new instance using the KeyPair you enter, you will need to have port 22 open in your default security group. **WARNING** This template an Amazon EC2 instances. You will be billed for the AWS resources used if you create a stack from this template.",

   "Parameters" : {
       "KeyName": {
        "Description" : "Name of an existing EC2 KeyPair ",
         "Type": "String",
         "MinLength": "1",
         "MaxLength": "255",
         "AllowedPattern" : "[\\x20-\\x7E]*",
         "ConstraintDescription" : "can contain only ASCII characters."
      }
    },

     "Mappings" : {
     "RegionMap" : {
            "us-east-1"      : { "AMI" : "ami-6df1e514" },
            "us-west-1"      : { "AMI" : "ami-6df1e514" },
            "us-west-2"      : { "AMI" : "ami-6df1e514" },
             "eu-west-1"      : { "AMI" : "ami-6df1e514" },
            "sa-east-1"      : { "AMI" : "ami-3e3be423" },
            "ap-southeast-1" : { "AMI" : "ami-74dda626" },
             "ap-southeast-2" : { "AMI" : "ami-b3990e89" },
             "ap-northeast-1" : { "AMI" : "ami-dcfa4edd" }
            }
           },

      "Resources" : {
         "Ec2Instance" : {
            "Type" : "AWS::EC2::Instance",
            "Properties" : {
            "KeyName" : { "Ref" : "KeyName" },
            "ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" :    "AWS::Region" }, "AMI" ]},
           "UserData" : { "Fn::Base64" : "80" }
       }
      }
    },

     "Outputs" : {
"InstanceId" : {
  "Description" : "InstanceId of the newly created EC2 instance",
  "Value" : { "Ref" : "Ec2Instance" }
},
"AZ" : {
  "Description" : "Availability Zone of the newly created EC2 instance",
  "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "AvailabilityZone" ] }
},
"PublicIP" : {
  "Description" : "Public IP address of the newly created EC2 instance",
  "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicIp" ] }
},
"PrivateIP" : {
  "Description" : "Private IP address of the newly created EC2 instance",
  "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PrivateIp" ] }
},
"PublicDNS" : {
  "Description" : "Public DNSName of the newly created EC2 instance",
  "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicDnsName" ] }
},
"PrivateDNS" : {
  "Description" : "Private DNSName of the newly created EC2 instance",
  "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PrivateDnsName" ] }
  }
  }
 }

I see you are not specifying the instance type in CF. 我看到您没有在CF中指定实例类型。 The default type is m3.medium . 默认类型为m3.medium Looks like in the region you are using m3.medium is not supported for hvm type AMI. 貌似在该地区使用的是m3.medium不支持hvm型AMI。

One way to specify the instance type: EC2 Instance Type Parameter 一种指定实例类型的方法: EC2实例类型参数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 此实例类型当前不支持虚拟化类型为“hvm”的非Windows实例:[AWS Cloudformation] - Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type : [AWS Cloudformation] 类型“ c4.2xlarge”的实例需要虚拟化类型“ hvm” - Virtualization type 'hvm' is required for instances of type 'c4.2xlarge' 't2.micro'类型的实例需要虚拟化类型'hvm' - Virtualization type 'hvm' is required for instances of type 't2.micro' 更改实例的虚拟化类型 - change virtualization type for an instance AWS:AMI将实例类型更新为不受支持的实例类型 - AWS: Update instance type to a non-supported instance type by the AMI 如何知道哪种实例类型可用于HVM或PV? - How to know which instance type available for HVM or PV? Ubuntu hvm实例存储支持的实例? - Ubuntu hvm instance-storage backed instances? CloudFormation:“当前不支持请求的配置” - CloudFormation: “The requested configuration is currently not supported” 启动 EC2:更改实例类型后当前不支持请求的配置 - Launch EC2: The requested configuration is currently not supported after changing instance type 以 Json 类型作为 cloudformation 模板的参数 - Taking Json type as parameter for cloudformation template
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM