盐云无法在EC2中设置安全组



我正在使用盐云启动windows ec2实例。但是我无法设置安全组。它不是为实例提供我指定的SG,而是为您提供"默认"安全组。

这是我的云配置文件定义:

ec2_private_win_app1_c4.2xlarge:
provider: company-nonpod-us-east-1
image: ami-xxxxxx
size: c4.2xlarge
network_interfaces:
    - DeviceIndex: 0
PrivateIpAddresses:
    - Primary: True
#auto assign public ip (not EIP)
AssociatePublicIpAddress: False
SubnetId: subnet-xxxxx
SecurityGroupId: sg-xxxxxx
block_device_mappings:
   - DeviceName: /dev/sda1
     Ebs.VolumeSize: 120
     Ebs.VolumeType: gp2
   - DeviceName: /dev/sdf
     Ebs.VolumeSize: 100
     Ebs.VolumeType: gp2

当我使用在线yaml检查器解析它时,该yaml将被检出。我可以做些什么来获得我指定的安全组而不是"默认"安全组?

如果指定的安全组SG与子网不在同一个VPC中,则安全组申请实例失败。

最新更新