I have an AWS S3 bucket to host an angular app. The S3 bucket works fine with AWS CLI. But the build app job in CircleCI fails!
NOTE: I can build the app locally and then deploy it to the s3 bucket successfully.
S3 has public access, the bucket policy for public read access, and has been enabled to host an index.html
.
Failed job in CircleCI to build the angular app:
CircleCI configuration file (config.yml
):
The npm run frontend:build
command runs ng build
to create the www
folder and then deploys the app.
This is what I got at the end of the big output file in CircleCI: