title: FUNCTION_ERROR_INIT_FAILURE AWS lambda
body: <p>I recently added the cool lambda feature - <strong>provisioned concurrency</strong>. </p>
  
  <p>After a few successful deployments, I now face this issue</p>
  
  <blockquote>
    <p>Serverless Error ---------------------------------------</p>
    
    <p>ServerlessError: An error occurred:
    GraphqlPrivateProvConcLambdaAlias - Provisioned Concurrency
    configuration failed to be applied. Reason:
    FUNCTION_ERROR_INIT_FAILURE.
          at C:\Users\theod\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\lib\monitorStack.js:125:33
    From previous event:
          at AwsDeploy.monitorStack (C:\Users\theod\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\lib\monitorStack.js:28:12)
          at C:\Users\theod\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\lib\updateStack.js:107:28
    From previous event:
          at AwsDeploy.update</p>
  </blockquote>
  
  <p>here's my sample serverless.yml file</p>
  
  <pre><code>service: backend-api
  
  parameters:
    region: ap-southeast-2
    path: &amp;path /
  
  provider:
    name: aws
    runtime: nodejs12.x
    stage: ${env:STAGE, 'staging'}
    region: ap-southeast-2
    versionFunctions: true
  
  plugins:
    - serverless-webpack
    - serverless-pseudo-parameters
    - serverless-prune-plugin
    # - serverless-offline-scheduler
    - serverless-offline
  
  functions:
    # GRAPHQL APIs
    graphqlPrivate:
      handler: src/graphql/private/index.handler
      memorySize: 256
      timeout: 30
      name: ${self:service}-gqlPrivate-${self:provider.stage}
      vpc: ${file(./serverless/vpc.yml)}
      events:
          - http:
              path: /graphql/private
              method: ANY
              cors: true
              authorizer:
                arn: arn:aws:cognito-idp:#{AWS::Region}:#{AWS::AccountId}:userpool/${self:custom.cognitoArns.private.${self:provider.stage}}
      provisionedConcurrency: 10
  
  
  package:
    individually: true
  
  custom:
    webpack:
      keepOutputDirectory: true
      serializedCompile: true
      webpackConfig: 'webpack.config.js'
      packager: 'npm'
    stage: ${opt:stage, self:provider.stage}
  
    prune:
      automatic: true
      number: 1
  </code></pre>
  
  <p>anybody able to resolve this issue?</p>
  
  <pre><code>  Your Environment Information ---------------------------
       Operating System:          win32
       Node Version:              12.11.0
       Framework Version:         1.61.3
       Plugin Version:            3.2.7
       SDK Version:               2.3.0
       Components Core Version:   1.1.2
       Components CLI Version:    1.4.0
  </code></pre>