0
我得到一個錯誤創建堆棧:雲的形成模板 - 創建錯誤
參數組名不能與參數子網
{
"Description": "AWS CloudFormation to Airflow production enviroment",
"Resources": {
"InstanceSecurityGroup": {
"Properties": {
"GroupDescription": "Enable SSH and HTTP access on the inbound port",
"SecurityGroupIngress": [
{
"CidrIp": "0.0.0.0/0",
"FromPort": "22",
"IpProtocol": "tcp",
"ToPort": "22"
},
{
"CidrIp": "0.0.0.0/0",
"FromPort": "8080",
"IpProtocol": "tcp",
"ToPort": "8080"
}
],
"VpcId": "vpc-f283cb97"
},
"Type": "AWS::EC2::SecurityGroup"
},
"airflow": {
"Properties": {
"ImageId": "ami-f303fb93",
"InstanceType": "t2.micro",
"SecurityGroups": [
{
"Ref": "InstanceSecurityGroup"
}
],
"SubnetId": "subnet-0820796d",
"Tags": [
{
"Key": "Name",
"Value": "ec2-airflow-production"
}
]
},
"Type": "AWS::EC2::Instance"
}
}
}