Deploy your Angular App to a Serverless Environment (AWS)

DesignCourse · 54K views · 2018 · 14:23

Open on YouTube

Cloud, DevOps & reliabilityWeb developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the walkthrough they followed when deploying an Angular app to AWS Lambda, usually when asking about errors they hit along the way.

Recommended by 0 people across 0 different months, 2019 to 2020.

What it is

A 14-minute tutorial by Gary Simon of DesignCourse showing how to deploy an Angular app to a serverless AWS setup (Lambda and API Gateway) using the ng-toolkit serverless schematic. Everything is done through console commands without touching application code, and the video lists the benefits of serverless hosting.

What people said

Cites user9847788 · 2019-07 · Stack Overflow · on “How to resolve ApiLambdaFunction error using serverless to deploy Angular app to AWS”

I am trying to deploy my Angular app to AWS using the serverless [LINK] package, following the steps in this [this video] tutorial. I've followed the steps correctly, & ran npm run build:serverless:deploy , but rather than the app being successfully deployed I get the following error message in the console: An error occurred: ApiLambdaFunction - The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs10.x) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: dba0ade8-1f2c-4dc7-8ddc-c2966a54a67c). When I run node -v in

Cites rakcode · 2019-08 · Stack Overflow · on “Hosting a Angular 6 app in AWS S3 bucket with proxy”

I have an Angular App which is calling API from different server (CORS) I've set up Proxy to do so. When I run npm start it will run ng serve --port 80 --proxy-config proxy.conf.json My package.json file is as below { "name": "appname", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve --port 80 --proxy-config proxy.conf.json", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { -- dependencies -- }, "devDependencies": { -- devDependencies -- } } The proxy.config.json file contains API endpoint configuration as below. { "/api":{ "target": " [LINK] ", "secure": false, "changeOrigin": true } } I've uploaded the project

Cites SK. · 2020-03 · Stack Overflow · on “AWS Serverless Lambda + Angular - TypeError: express is not a function”

The application works fine in localhost:4200. But when I move to AWS via serverless Lambda, I get this error in cloudwatch logs. And I guess because of that I am getting 500 {"message": "Internal server error"} when I access the url I have no knowledge about AWS. Just trying to run a hello world application in AWS. Followed below youtube and blogs [LINK] [this video] [LINK] 2020-03-26T22:48:18.030Z undefined ERROR Uncaught Exception { "errorType": "TypeError", "errorMessage": "express is not a function", "stack": [ "TypeError: express is not a function", " at Object.<anonymous> (/var/task/dist/server.js:95287:15)", " at __webpack_require__ (/var/task/dist/server.js:21:30)", " at module.exports.ex