- Newest
- Most votes
- Most comments
The "Insufficient capacity" error you're encountering with your macOS build fleet in AWS CodeBuild indicates that AWS currently doesn't have enough available M2 Mac instances in the us-east-1 region to fulfill your request.
This is different from a quota limit issue. When you see "Insufficient capacity," it means that the physical hardware resources (in this case, Apple M2 Mac mini computers that power these instances) are temporarily unavailable in that region, rather than your account hitting a service quota.
To address this issue, you have a few options:
-
Try again later: Since you mentioned this happens intermittently, the capacity constraints may be temporary. AWS continuously adds capacity, so trying at a different time might resolve the issue.
-
Try a different instance type: If your workload can run on a different Mac instance type (such as the M2 with 12 vCPUs and 32 GB memory), you could try that configuration instead.
-
Try a different AWS region: If your workflow allows, you could attempt to create your macOS fleet in another AWS region where CodeBuild supports macOS.
-
Contact AWS Support: If this is a recurring issue affecting your production workloads, reaching out to AWS Support might help. They can provide more specific guidance based on capacity forecasts and may be able to help with capacity planning.
Unlike some other AWS services where you can request quota increases through Service Quotas, this particular issue is related to physical hardware availability rather than an account limit that can be adjusted through a quota increase request.
Sources
Run builds on reserved capacity fleets - AWS CodeBuild
The Maximum fleet capacity limit was exceeded. Requested: 1, Limit: 0 | AWS re:Post
Amazon EC2 Mac Instances - Amazon Web Services
Add macOS to your continuous integration pipelines with AWS CodeBuild | AWS News Blog
Relevant content
asked 2 years ago
asked 4 years ago
- AWS OFFICIALUpdated a year ago
