aws-amplify / aws-amplify/amplify-hosting
autoBranchCreation does not seem to be working - Amplify CDK
- 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.
- [X] I have removed any sensitive information from my code snippets and submission.
### App Id
d3fbyr8og64k2w
### AWS Region
us-east-1
### Amplify Hosting feature
Not Applicable
### Describe the bug
I am using CDK and following the docs [https://constructs.dev/packages/@aws-cdk/aws-amplify-alpha/v/2.50.0-alpha.0/api/App?lang=typescript](https://constructs.dev/packages/@aws-cdk/aws-amplify-alpha/v/2.50.0-alpha.0/api/App?lang=typescript)
```
const amplifyApp = new amplify.App(this, 'XXXXX', {
sourceCodeProvider: new amplify.GitHubSourceCodeProvider({
owner: 'xxxxxxx',
repository: 'xxxxxxxi',
oauthToken: cdk.SecretValue.secretsManager('xxxxxx', {
jsonField: 'xxxxxx',
}),
}),
role: role,
autoBranchCreation: {
patterns: ['*'],
},
autoBranchDeletion: true,
});
```
As mentioned in the docs, I have used the code above to enable autoBranchCreation and I have pushed two new branches to the connected github repo but I do not see these branches in the amplify console. I have also used this feature successfully for another amplify app i created a few weeks ago while playing around/testing amplify
### Expected behaviour
New branches created should be autodetected and listed as part of the connected branches in AWS amplify console
### Reproduction steps
1. Create amplify app and connect to github repo
2. Create a new branch in the connected github repo
3. Branch should be autodetected and listed as part of the connected branches in AWS amplify console
### Build Settings
_No response_
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
Contributor guide
Research direction
Start with the linked AWS CDK Amplify App API documentation and the TypeScript configuration shown in the report, then reproduce the issue by creating a connected app and pushing a branch. Done means a newly pushed branch is automatically detected and listed as a connected branch in the Amplify console.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, github, typescript
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100