aws-amplify / aws-amplify/amplify-hosting

error creating Amplify Branch: BadRequestException: Failed to create branch. The branch is deleting for the app. Please wait a few minutes before re-create this branch.

Open
#2,732 13 comments 3 reactions 0 assignees View on GitHub
bug console
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-hosting/blob/master/FAQ.md).
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-hosting/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-hosting/blob/master/CONTRIBUTING.md).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

### App Id

d9xa3jv6dubk3

### Region

eu-west-1

### Amplify Hosting feature

Not applicable

### Describe the bug

To begin with, wanted to recreate an Amplify branch.
Deleted the previous one for the same app, and now cannot recreate it (same name) with the message that the old one is still deleting.
It has been like this for 4 days.

### Expected behavior

New branch should come up correctly.

### Reproduction steps

1. Delete previous branch.
2. Create branch via awscli/awsconsole/terraform with the same name as the deleted branch.
3. Get error.

### Build Settings

_No response_

### Additional information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with FAQ.md and CONTRIBUTING.md, then reproduce the deletion and same-name branch creation through awscli, the AWS console, or Terraform in eu-west-1 using the reported app. Done means determining whether the branch can be recreated after deletion and documenting or resolving the persistent BadRequestException.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, terraform
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.