I receive an error similar to the following when I try to add a custom Availability Zone to Auto Scaling in an Amazon Virtual Private Cloud (VPC) environment in Elastic Beanstalk:

Subnets: Invalid option value: '[AWS availability zone]' (Namespace: 'aws:ec2:vpc', OptionName: 'Custom Availability Zones'): Custom Availability Zones option not supported for VPC environments.

My instance in Elastic Beanstalk is configured to run with custom VPC settings.

The "Custom Availability Zones" option can only be specified for Elastic Beanstalk environments that don't use custom VPC settings.

You can work around this issue by configuring your instances to run in a particular subnet or subnets. Each subnet is associated with a single Availability Zone. Therefore, you can indirectly implement custom Availability Zones by configuring your instance to run in a subnet or subnets created in a designated Availability Zone.

When you encounter this error, if you are using the console, deselect the Auto Scaling custom Availability Zones in your configuration:

  1. Sign in to the Elastic Beanstalk management console.
  2. Choose your environment from the list.
  3. In the navigation pane on the left, select Configuration.
  4. Choose the gear icon next to Scaling.
  5. Select the drop-down menu next to Auto Scaling.
  6. Deselect the Custom Availability Zones.

If you configured your application with an .ebextensions file, remove the setting from the config files. For instructions, see Setting Configuration Options After Environment Creation.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2017-09-27