Update proxy network settings
After you create a proxy, you can change which subnets and security groups it uses. In
ELB for Envoy, the subnets set the Availability Zones that the proxy runs in, and the security
groups control what traffic can reach the proxy and what traffic the proxy can send. You update
both with the UpdateProxyNetworkConfiguration operation.
You must provide at least one of subnets or securityGroups. The
subnets and security groups you provide replace the proxy's current values for that
field.
You can't change the IP addressing configuration (the IPv4 and IPv6 addressability settings) after you create a proxy. To change the IP addressing configuration, create a new proxy.
Before you update network settings, make sure you have the following:
-
The ARN of an existing proxy.
-
The subnets you want the proxy to use. You must specify at least two subnets in different Availability Zones, and all subnets must belong to the same VPC.
-
The security groups you want the proxy to use. You must specify at least one security group in the same VPC as your subnets.
-
For IPv6 or dualstack proxies, subnets that have an IPv6 CIDR block associated. For IPv6-only proxies (IPv4 set to
off),ipv6Nativesubnets. For all other configurations, non-ipv6Nativesubnets.
Update the network settings using the console, the AWS CLI, or CloudFormation. Choose the tab for the method that you want to use.
Verify the update
To confirm the new network settings, run the get-proxy command and
inspect the networkConfiguration.vpcConfiguration field in the response.
aws elb-proxy get-proxy --proxy-identifier <proxy-arn>
Replace proxy-arn with the ARN of your proxy. The response
shows the proxy's current security groups and the Availability Zones that correspond to its
subnets.