Skip to content

Amplify AL 2023 won't build with the stock amplify.yml #230

Description

@cjthedj97

Using the 2023 Amazon Linux on Amplify build fails for a few reasons

  • Curl is part of the image
  • Hugo is also preinstalled
  • go is not installed

What I am using to build is below, just wanted to put this out there for anyone else having this issue.

version: 1
frontend:
  phases:
    preBuild:
      commands:
        - sudo yum -y install golang # now need sudo for yum commands
        - go version # not required just handy
        - hugo version # not required just handy
        - npm install
    build:
      commands:
        - npm run project-setup
        - npm run build
  artifacts:
    # IMPORTANT - Please verify your build output directory
    baseDirectory: /public
    files:
      - "**/*"
  cache:
    paths:
      - node_modules/**/*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions