- Newest
- Most votes
- Most comments
This error indicates that you're trying to apply an Application Load Balancer (ALB) or Network Load Balancer (NLB) specific setting to an environment that's likely using a Classic Load Balancer.
The "IpAddressType" option with value "ipv4" is only applicable to environments configured with an Application Load Balancer or Network Load Balancer. Your environment appears to be using a Classic Load Balancer, which doesn't support this configuration option.
To resolve this issue, you have a few options:
-
Remove the IpAddressType setting from your configuration update. If you're using a saved configuration or a configuration file, edit it to remove this setting before applying the update.
-
Migrate your environment to use an Application Load Balancer instead. This would require a more significant update to your environment and would cause some downtime as Elastic Beanstalk would need to replace all instances. This is because changes to load balancer types or VPC settings require terminating and replacing all instances in your environment.
-
If you're using the AWS CLI or SDK to update your environment, make sure you're not including the IpAddressType option in your update-environment command.
Keep in mind that configuration changes that modify load balancer settings typically require instance replacement, which Elastic Beanstalk can handle through rolling updates or immutable updates to minimize downtime.
Sources
Configuration changes - AWS Elastic Beanstalk
answered 10 months ago
