Привет ниже мой шаблон для создания экземпляра в AWS с включенным Elastic IP. Однако я не уверен, где я иду не так.Я проверил json с помощью онлайн-валидатора json, который все еще сталкивается с проблемой. Помогите
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "My learning template",
"Parameters" : {
"KeyName": {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the web server",
"Type": "AWS::EC2::KeyPair::KeyName",
"Default" : "Myvirginiakey",
"ConstraintDescription" : "must be the name of an existing EC2 KeyPair."
},
"EC2InstanceType" : {
"Type" : "String",
"Default" : "t2.micro",
"AllowedValues" : ["t2.micro", "m1.small", "m1.large"],
"Description" : "Enter t2.micro, m1.small, or m1.large. Default is t2.micro."
}
},
"IPAddress" : {
"Type" : "AWS::EC2::EIP"
},
"IPAssoc" : {
"Type" : "AWS::EC2::EIPAssociation",
"Properties" : {
"InstanceId" : { "Ref" : "EC2Instance" },
"EIP" : { "Ref" : "IPAddress" }
}
},
"Resources" : {
"Ec2Instance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"UserData" : { "Fn::Base64" : { "Fn::Join" : [ "", [ "IPAddress=", {"Ref" : "IPAddress"}]]}},
"KeyName" : { "Ref" : "KeyName"},
"ImageId": "ami-0912f71e06545ad88",
"InstanceType" : { "Ref" : "EC2InstanceType"}
}
}
},
"Outputs" : {
}
}
Сообщение об ошибке:
«Недопустимое свойство или свойства шаблона».свойство или свойства [IPAssoc, IPAddress] "