title: What is causing this Runtime.ExitError on AWS Lambda?
body: <p>I'm trying to test a function on Lambda, but when I test it i get a <strong>Runtime.ExitError</strong>:</p>
  <p>What would be the cause?</p>
  <pre><code>{&quot;errorType&quot;: &quot;Runtime.ExitError&quot;, &quot;errorMessage&quot;: &quot;RequestId:
   0dfeb7be-012d-43b7-8674-665bfd8b2bc2 Error: Runtime exited with error: exit status 7&quot; }
  </code></pre>
  <blockquote>
  <p>ask/node_modules/aws-sdk/lib/request.js:364:18)&quot;,&quot;    at
  Request.callListeners
  (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)&quot;,&quot;
  at Request.emit
  (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)&quot;,&quot;<br />
  at Request.emit
  (/var/task/node_modules/aws-sdk/lib/request.js:683:14)&quot;,&quot;    at
  Request.transition
  (/var/task/node_modules/aws-sdk/lib/request.js:22:10)&quot;,&quot;    at
  AcceptorStateMachine.runTo
  (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)&quot;,&quot;    at
  /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10&quot;,&quot;    at
  Request.
  (/var/task/node_modules/aws-sdk/lib/request.js:38:9)&quot;],&quot;message&quot;:&quot;Could
  not create table (Meals): User:
  arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTemp
  is not authorized to perform: dynamodb:CreateTable on resource:
  arn:aws:dynamodb:us-east-2:929545228810:table/Meals&quot;,&quot;time&quot;:&quot;2019-09-26T18:02:51.854Z&quot;}
  2019-09-26T18:02:51.931Z  e3d534bb-abd8-4b49-a628-2ec5c6193ec1    INFO    Uncaught
  exception: AskSdk.DynamoDbPersistenceAdapter Error: Could not create
  table (Meals): User:
  arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTemp
  is not authorized to perform: dynamodb:CreateTable on resource:
  arn:aws:dynamodb:us-east-2:929545228810:table/Meals
  AskSdk.DynamoDbPersistenceAdapter Error: Could not create table
  (Meals): User:
  arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTemp
  is not authorized to perform: dynamodb:CreateTable on resource:
  arn:aws:dynamodb:us-east-2:929545228810:table/Meals
  at Object.createAskSdkError (/var/task/node_modules/ask-sdk-runtime/dist/util/AskSdkUtils.js:22:17)
  at Response. (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/dist/attributes/persistence/DynamoDbPersistenceAdapter.js:88:42)
  at Request. (/var/task/node_modules/aws-sdk/lib/request.js:364:18)
  at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
  at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
  at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:683:14)
  at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)
  at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)
  at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10
  at Request. (/var/task/node_modules/aws-sdk/lib/request.js:38:9)
  /var/task/node_modules/ask-sdk-v1adapter/dist/adapter.js:275
  throw err;
  ^</p>
  <p>AskSdk.DynamoDbPersistenceAdapter Error: Could not create table
  (Meals): User:
  arn:aws:sts::929545228810:assumed-role/homeAssistTemp-role-rz5qgsmq/homeAssistTemp
  is not authorized to perform: dynamodb:CreateTable on resource:
  arn:aws:dynamodb:us-east-2:929545228810:table/Meals
  at Object.createAskSdkError (/var/task/node_modules/ask-sdk-runtime/dist/util/AskSdkUtils.js:22:17)
  at Response. (/var/task/node_modules/ask-sdk-dynamodb-persistence-adapter/dist/attributes/persistence/DynamoDbPersistenceAdapter.js:88:42)
  at Request. (/var/task/node_modules/aws-sdk/lib/request.js:364:18)
  at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
  at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
  at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:683:14)
  at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)
  at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)
  at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10
  at Request. (/var/task/node_modules/aws-sdk/lib/request.js:38:9) END RequestId:
  e3d534bb-abd8-4b49-a628-2ec5c6193ec1 REPORT RequestId:
  e3d534bb-abd8-4b49-a628-2ec5c6193ec1  Duration: 1013.44 ms    Billed
  Duration: 1100 ms Memory Size: 128 MB Max Memory Used: 97 MB  Init
  Duration: 513.63 ms    RequestId: e3d534bb-abd8-4b49-a628-2ec5c6193ec1
  Error: Runtime exited with error: exit status 7 Runtime.ExitError</p>
  </blockquote>