Я пытаюсь создать шаблон для AWS :: CloudFormation, в котором создается RDS. Но при попытке запустить модель получаю Encountered unsupported property SourceSecurityGroupId.
Я использую эти параметры для получения идентификатора группы безопасности
"WebServerSecurityGroupId": {
"Type": "AWS::EC2::SecurityGroup::Id",
}
И ресурс, который я использую:
"Resources": {
"DBVPCSecurityGroup" : {
"Type": "AWS::EC2::SecurityGroup",
"Properties" : {
"VpcId" : { "Ref" : "VpcId" },
"SecurityGroupIngress" : [
{
"IpProtocol" : "tcp",
"FromPort" : "80",
"ToPort" : "80",
"SourceSecurityGroupId:" : {
"Ref": "WebServerSecurityGroupId"
}
}
]
}
},
// the rest of template





На самом деле выглядит хорошо. Не могли бы вы попробовать разделить группу безопасности с помощью Ingress:
"DBVPCSecurityGroup" : {
"Type": "AWS::EC2::SecurityGroup",
"Properties" : {
"VpcId" : { "Ref" : "VpcId" }
}
},
"WebServerSecurityHTTPIn": {
"Type": "AWS::EC2::SecurityGroupIngress",
"Properties": {
"GroupId": {
"Ref": "DBVPCSecurityGroup"
},
"IpProtocol": "tcp",
"FromPort": "80",
"ToPort": "80",
"SourceSecurityGroupId": {
"Ref": "WebServerSecurityGroupId"
}
}
},
он работает, прямо сейчас создайте экземпляр RDS. прямо как я этого хочу. Спасибо