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

Kid*_*g_C 3 amazon-ec2 amazon-web-services amazon-elb aws-security-group

在文档中: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.

Run Code Online (Sandbox Code Playgroud)

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

在此输入图像描述

那么如何编辑其安全组呢?

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

为什么我不能编辑??

小智 5

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

请参阅:目标安全组 - Elastic Load Balancing