简体   繁体   English

入站 ICMP Cloudformation 安全组规则问题

[英]Inbound ICMP Cloudformation Security Group Rule Issue

I simply want to create an inbound security rule in my Cloudformation template that looks like this:我只想在我的 Cloudformation 模板中创建一个入站安全规则,如下所示: 在此处输入图像描述

Everything I try - several suggestions from here, in fact - all give me this result:我尝试的一切——事实上,这里有几个建议——都给了我这个结果: 在此处输入图像描述

What am I missing?我错过了什么? This is my current attempt:这是我目前的尝试:

PrivateSecurityGroupIngressA:
  Type: AWS::EC2::SecurityGroupIngress
  Properties:
    GroupId: !Ref PrivateSecurityGroup
    IpProtocol: icmp
    FromPort: 8
    ToPort: -1
    Description: Allow Inbound ICMP
    CidrIp: 0.0.0.0/0

It should be:它应该是:

    PrivateSecurityGroupIngressA:
        Type: AWS::EC2::SecurityGroupIngress
        Properties:
            GroupId: !GetAtt PrivateSecurityGroup.GroupId
            IpProtocol: icmp
            FromPort: -1
            ToPort: -1
            Description: Allow Inbound ICMP
            CidrIp: 0.0.0.0/0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM