[英]Cloud formation Template - Creation error
我在創建堆棧時遇到錯誤:
參數groupName不能與參數子網一起使用
{
"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"
}
}
}
您在此處需要安全組ID,而不是安全組的名稱。 將“ InstanceSecurityGroup”更改為將起作用的安全組ID。
"Ref": "InstanceSecurityGroup"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.