question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Reproduction Steps

    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

Environment

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

Other


This is 🐛 Bug Report

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bobveringacommented, May 7, 2022

I had the same issue, ended up resolving it using a AwsCustomResource and an SDK call to start-job. My answer on Stack Overflow is here https://stackoverflow.com/a/72146964/6056963. There is also some more context in that answer.

0reactions
swizzmagikcommented, May 7, 2022

You solved by problem less than 1 hour later thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manual deploys - AWS Amplify Hosting
Manual deploys allows you to publish your web app with Amplify Hosting without connecting a Git provider. You can choose to drag and...
Read more >
Configuring build settings - AWS Amplify Hosting
Build settings is visible in the Amplify console's App settings menu only when an app is set up for continuous deployment and connected...
Read more >
Getting started with existing code - AWS Amplify Hosting
In this walkthrough, you learn how to continuously build, deploy, and host a modern web app. Modern web apps include single-page application (SPA) ......
Read more >
Troubleshooting Amplify identity and access
With the release of Amplify Studio, deleting an app or a backend requires both amplify and amplifybackend permissions. If an administrator has written...
Read more >
AWS Amplify vs Heroku - Which is the best?
The runtime keeps your apps running without any manual intervention. Threshold monitoring: Termed Heroku Operational Experience, the platform offers a series of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found