AWS EC2:网络负载均衡器是否有安全组?

AWS EC2: does Network Load Balancer have security groups?

在文档中:https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-update-security-groups.html 在编辑负载均衡器的安全组时,它会显示以下内容:

Update the associated security groups
You can update the security groups associated with your load balancer at any time.

To update security groups using the console:

1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

2. On the navigation pane, under LOAD BALANCING, choose Load Balancers.

3. Select the load balancer.

4. On the Description tab, under Security, choose Edit security groups.

5. To associate a security group with your load balancer, select it. To remove a security group from your load balancer, clear it.

6. Choose Save.

但是,对于我的网络负载均衡器,我无法select“编辑安全组”选项。它是灰色的:

那么如何编辑它的安全组呢?

由于安全组配置的原因,目前无法将对 NLB 的请求传送到目标组中的 EC2 实例。

为什么我不能编辑??

不,网络负载均衡器没有安全组。您应该根据 IP 地址或 CIDR 块将安全组直接添加到 EC2 目标。

参见:Target Security Groups - Elastic Load Balancing