Open IgorAlexeew opened 1 year ago
This error occurs only with the latest versions of the serverless-offline
, with version 8.8.1
everything is ok
I've come across the same issue
frameworkVersion: '3'
package:
individually: true
provider:
name: aws
runtime: nodejs18.x
region: ca-central-1
httpApi:
cors: true
authorizers:
customAuthorizer:
type: request
functionName: customAuthorizer
identitySource: $request.header.Authorization
enableSimpleResponses: true
payloadVersion: '2.0'
iam:
role:
statements:
- Effect: Allow
Action: 'secretsmanager:GetSecretValue'
Resource: '*'
- Effect: Allow
Action:
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
Resource: "*"
- Effect: Allow
Action:
- cognito-idp:AdminConfirmSignUp
- cognito-idp:AdminCreateUser
- cognito-idp:AdminInitiateAuth
- cognito-idp:SignUp
- cognito-idp:AdminRespondToAuthChallenge
- cognito-idp:AdminUserGlobalSignOut
Resource: "*"
plugins:
- serverless-dotenv-plugin
- serverless-bundle
- serverless-offline
custom:
bundle:
disableForkTsChecker: true
esbuild: true
packager: yarn
After the changes in the code, the following is output
But at the same time, there is no change in the lambdas, they are executed in the old way. And they are updated only after 5-10 minutes