# Successful build in Netlify but not in AWS Amplify

**URL:** <https://discourse.gohugo.io/t/successful-build-in-netlify-but-not-in-aws-amplify/44113>\
**Category:** support\
**Tags:** netlify\
**Created:** [April 28, 2023, 3:42am UTC](https://discourse.gohugo.io/t/successful-build-in-netlify-but-not-in-aws-amplify/44113 "2023-04-28T03:42:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete\_dunham](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pete_dunham/32/14407_2.png) [@pete\_dunham](https://discourse.gohugo.io/u/pete_dunham)\
**Post date:** [April 28, 2023, 3:42am UTC](https://discourse.gohugo.io/t/successful-build-in-netlify-but-not-in-aws-amplify/44113/1 "2023-04-28T03:42:47Z")

</div>

I am trying to move from Netlify DNS to Route 53 and thus moving from Netlify building to AWS Amplify building.

**Here is the repo:**

> **[GitHub - FullstackProblemSolver/fullstackproblemsolvercom: Website for...](https://github.com/FullstackProblemSolver/fullstackproblemsolvercom)**
>
> Website for fullstackproblem solver. Contribute to FullstackProblemSolver/fullstackproblemsolvercom development by creating an account on GitHub.

- Note: this has a theme as a submodule

Netlify has always built with standard build settings set to Hugo 0.58.3 (see screenshots

 ![2023-04-27_23-37-19](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/6/5/6563c92da89f416f1bf7d330f6770efe0097410f.png)  
)  
 ![2023-04-27_23-37-03](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/e/7/e71b2c0dbf75c4cda0569881e3c95b42b826819b.png)

AWS Amplify hasn’t completed a build, even though I have completed fine with other Hugo sites and themes.

In AWS i’ve tried different Hugo versions, if extended isn’t specified my build breaks, otherwise it just hangs forever.

Here are two build settings I’ve tried:

Hangs forever:

```auto
version: 1
frontend:
  phases:
    preBuild:
      commands:
        - wget https://github.com/gohugoio/hugo/releases/download/v${VERSION_HUGO}/hugo_extended_${VERSION_HUGO}_Linux-64bit.tar.gz
        - tar --overwrite -xf hugo_extended_${VERSION_HUGO}_Linux-64bit.tar.gz hugo
        - mv hugo /usr/bin/hugo
        - rm -rf hugo_extended_${VERSION_HUGO}_Linux-64bit.tar.gz
        - hugo version
    build:
      commands:
        - hugo
  artifacts:
    baseDirectory: public
    files:
      - '**/*'
  cache:
    paths: []

```

Breaks early (needs extended). But works robustly on other hugo sites with a different theme.

```auto
version: 1
frontend:
  phases:
    build:
      commands:
        - hugo
  artifacts:
    baseDirectory: public
    files:
      - '**/*'
  cache:
    paths: []

```

I am stuck on why this site work locally, builds on Netlify, but I am pulling out hair on not building in AWS Amplify.

If anyone has insight for troubleshooting or has solved this, it’s greatly appreciated!

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [April 28, 2023, 2:39pm UTC](https://discourse.gohugo.io/t/successful-build-in-netlify-but-not-in-aws-amplify/44113/2 "2023-04-28T14:39:57Z")

</div>

Are you sure that AWS is cloning recursively?  
[https://dev.to/noahsummers/deploying-a-hugo-site-with-git-submodules-on-aws-amplify-50i5](https://dev.to/noahsummers/deploying-a-hugo-site-with-git-submodules-on-aws-amplify-50i5)

---

<div class="post-metadata">

**Author:** ![pete\_dunham](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pete_dunham/32/14407_2.png) [@pete\_dunham](https://discourse.gohugo.io/u/pete_dunham)\
**Post date:** [April 29, 2023, 2:00pm UTC](https://discourse.gohugo.io/t/successful-build-in-netlify-but-not-in-aws-amplify/44113/3 "2023-04-29T14:00:16Z")

</div>

@jmooring,

Recursive cloning does seem to be working. I did battle this previously in AWS Amplify, though. Submodules also working ok in other builds.

I found a difference in working Amplify apps and this one. In this one the “Framework” listed as “Web” but in working ones it is listed as “Hugo”. However, I haven’t found a way to set Framework.

I “enabled” Amplify studio and all of a sudden it started working. I am going to see if I can zero in on what changed.
