0

このインスタンスタイプのためにサポートされていません」 『HVM』の仮想化タイプと\t Windows以外のインスタンスを提供します。Cloudformationテンプレートは、現在、私はAWS上のEC2のisntanceを作成する必要があり、単純なcloudformationテンプレートを書いた

Cloudformationテンプレートを提供します"仮想化タイプが 'hvm'の非Windowsインスタンスは、現在のところ、このインスタンスタイプではサポートされていません。"このフォーラムを参照し、 "InstanceType"が不足していると言いました。 "InstanceTyp"?ありがとうございました { "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" ] } 
    } 
    } 
} 
+0

私は投稿と同様の問題を発見した前に、私は検索:

一つの方法は、インスタンスタイプを指定します。しかし、私は答えに言及されているものを実装する方法を知らない。 – Jason

答えて

1

CFにインスタンスタイプを指定していないのがわかります。デフォルトのタイプはm3.mediumです。あなたが使用している地域のように見えるm3.mediumは、hvmタイプAMIではサポートされていません。 EC2 Instance Type Parameter

+0

helloV、それは今動作します。 EC2インスタンスタイプパラメータリンクを私に指摘してくれてありがとう。私は作業コードを掲示すべきですか?このフォーラムの新機能 – Jason

+0

私はあなたの答えを受け入れることができません。 – Jason

関連する問題