2017-01-24 102 views
0

的inboud /出站規則在我的安全組,我有這些規則:創建由Cloudformation

enter image description here

enter image description here

這是我在cloudformation模板創建:

{ 
    "SecurityGroupIngress": [ 
     { 
      "IpProtocol": "NFS", 
      "FromPort": "tcp", 
      "ToPort": "2049", 
      "CidrIp": "0.0.0.0/0" 
     } 
    ], 
    "SecurityGroupEgress": [ 
     { 
      "IpProtocol": "All traffic", 
      "FromPort": "All", 
      "ToPort": "All", 
      "CidrIp": "0.0.0.0/0" 
     } 
    ] 
} 

但在堆棧創建過程中出現錯誤:Encountered non numeric value for property FromPort 我需要k現在什麼值對應於所有Trafic和端口tcp 任何想法如何正確創建規則與正確的值?

回答

相關問題