Hello,
While deploying a javascript application to AWS via serverless, the following error is thrown:
66] external “timers” 42 bytes {0} [optional] [built]
+ 142 hidden modules
WARNING in configuration
The ‘mode’ option has not been set, webpack will fallback to ‘production’ for this value. Set ‘mode’ option to ‘development’ or ‘production’ to enable defaults for each environment.
You can also set it to ‘none’ to disable any default behavior. Learn more:
serverless deploy
Serverless: Packaging service…
Serverless: Excluding development dependencies…
Serverless: Recoverable error occurred (getaddrinfo EAI_AGAIN cloudformation.eu-east-2.amazonaws.com), sleeping for ~4 seconds. Try 1 of 4
Serverless Error ---------------------------------------
** getaddrinfo EAI_AGAIN cloudformation.eu-east-2.amazonaws.com**
Your Environment Information ---------------------------
Operating System: win32
Node Version: 12.16.1
Framework Version: 1.67.0
Plugin Version: 3.5.0
SDK Version: 2.3.0
Components Version: 2.22.3
While deployment was running, I was checking in website this url to see if connection exists:
https:// cloudformation. us-east-2. amazonaws. com/
Always getting “healthy” response.
it is a plain vanilla deployment, no customizations to serverless.yml. But anyway here it is.
generated by @ng-toolkit/serverless
service: pomocna-dlon
plugins:
-
serverless-apigw-binary
-
serverless-api-compression
provider:
name: aws
runtime: nodejs10.x
memorySize: 192
timeout: 10
stage: production
region: eu-east-2
package:
exclude:
-
src/**
-
node_modules/**
-
firebug-lite/**
-
e2e/**
-
coverage/**
-
‘!node_modules/aws-serverless-express/**’
-
‘!node_modules/binary-case/**’
-
‘!node_modules/type-is/**’
-
‘!node_modules/media-typer/**’
-
‘!node_modules/mime-types/**’
-
‘!node_modules/mime-db/**’
custom:
contentCompression: 1024
apigwBinary:
types:
- '*/*'
functions:
api:
handler: lambda.universal
events:
- http: ANY {proxy+}
- http: ANY /
Can you share any tips or suggestions please?