如何允许某些端口仅对Cloud Custodian中的某些安全组开放?

问题描述 投票:0回答:1

在我的政策中,我只允许80和443对世界开放。

      "or": [
        {
          "Cidr": {
            "value": "0.0.0.0/0"
          }, 
          "type": "ingress", 
          "OnlyPorts": [
            80, 
            443
          ]
        }, 
        {
          "CidrV6": {
            "value": "::/0"
          }, 
          "type": "ingress", 
          "OnlyPorts": [
            80, 
            443
          ]
        }
      ]

现在,我想只允许8080和8081选择安全组,而不是所有安全组。这可能吗?

amazon-ec2 policy standards-compliance aws-security-group
1个回答
0
投票

您只需要编辑特定的安全组。只需打开那里的端口即可。

© www.soinside.com 2019 - 2024. All rights reserved.