aws / aws/aws-cdk

[aws-amplify] Creating an Amplify app fails to run build, manual intervention needed.

Open
#9,479 5 comments 6 reactions 0 assignees View on GitHub
@aws-cdk/aws-amplify bug effort/medium p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

Creating an Amplify app fails to run build, manual intervention needed. Running it manually works.

### Reproduction Steps

```js
const amplifyApp = new amplify.App(this, 'XXX', {
sourceCodeProvider: new amplify.GitHubSourceCodeProvider({
owner: 'XXX',
repository: 'XXX',
oauthToken: cdk.SecretValue.plainText(process.env.PAT as string)
}),
});
const master = amplifyApp.addBranch('master');
amplifyApp.addCustomRule(amplify.CustomRule.SINGLE_PAGE_APPLICATION_REDIRECT);
const domain = amplifyApp.addDomain('XXX');
domain.mapRoot(master);
domain.mapSubDomain(master, 'www');
```

`amplify.yml` is repo

### What did you expect to happen?

Amplify app goes live.

### What actually happened?

On the Amplify console I can see the first build never being triggered:

![image](https://user-images.githubusercontent.com/3299948/89500700-6ec12380-d7c2-11ea-85e7-483828571e1c.png)

### Environment

- **CLI Version :*6.14.6*
- **Framework Version:**
- **Node.js Version:*v14.6.0*
- **OS :*Ubuntu*
- **Language (Version):*TS*

### Other

---

This is :bug: Bug Report

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the TypeScript example with the specified AWS CDK CLI, Node.js, and Ubuntu environment, then inspect the Amplify app, branch, and domain provisioning path. Compare the initial console state with a manually triggered build. Done means creating the app triggers its first build without manual intervention and the Amplify app goes live.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.