vim, git, aws and other three-letter words

Software Development Notes

AWS Error: Default subnet in us-east-1f not found

I suddenly started getting the Default subnet in us-east-1f not found error during the Elastic Beanstalk environment update.

Failed to deploy application.
Updating load balancer named: awseb-e-t-AWSEBLoa-XXXXXXXXXXXXX failed Reason: Default subnet not found in us-east-1f
Service:AmazonCloudFormation, Message:Stack named 'awseb-e-xxxxxxxxxx-stack' aborted operation.
Current state: 'UPDATE_ROLLBACK_IN_PROGRESS'
Reason: The following resource(s) failed to create: [AWSEBUpdateWaitConditionHandleralanC].
The following resource(s) failed to update: [AWSEBLoadBalancer].

And a similar one when trying to create a new environment:

Creating load balancer failed Reason: Default subnet in us-east-1f not found
Created CloudWatch alarm named: awseb-e-tet63me2mx-stack-AWSEBCWLAllErrorsCountAlarm-3XCPMJ1ZGJ18
Stack named 'awseb-e-tet63me2mx-stack' aborted operation.
Current state: 'CREATE_FAILED'
Reason: The following resource(s) failed to create: [AWSEBLoadBalancer].

The reason seems to be that the new us-east-1f availability zone was added, but the subnet for it wasn't configured (not sure why, and whether it is supposed to be configured automatically).

The solution is to create the subnet manually:

Elastic Beanstalk updates started working after that.

Tags: aws