我只想在我的 Cloudformation 模板中創建一個入站安全規則,如下所示:

我嘗試的一切——事實上,這里有幾個建議——都給了我這個結果:

我錯過了什么?這是我目前的嘗試:
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
uj5u.com熱心網友回復:
它應該是:
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
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/411125.html
標籤:
