title: "MissingRequiredParameter: Missing required key 'FunctionName' in params" UnexpectedParameter: Unexpected key 'FunctoinName' found in params"
body: <p>I'm new to AWS and try to learn, following the CDK workshop. In the <a href="https://cdkworkshop.com/20-typescript/40-hit-counter/600-permissions.html" rel="nofollow noreferrer">lesson about permissions</a> I receive below error while invoking Lambda function. I'm unable to figure out what exactly I'm missing here.</p>
  <pre><code>2021-12-24T22:51:39.682Z    f903da64-11f8-4294-8eeb-a02179c48dbd    ERROR   Invoke Error    {
      &quot;errorType&quot;: &quot;MultipleValidationErrors&quot;,
      &quot;errorMessage&quot;: &quot;There were 2 validation errors:\n* MissingRequiredParameter: Missing required key 'FunctionName' in params\n* UnexpectedParameter: Unexpected key 'FunctoinName' found in params&quot;,
      &quot;code&quot;: &quot;MultipleValidationErrors&quot;,
      &quot;message&quot;: &quot;There were 2 validation errors:\n* MissingRequiredParameter: Missing required key 'FunctionName' in params\n* UnexpectedParameter: Unexpected key 'FunctoinName' found in params&quot;,
      &quot;errors&quot;: [
          {
              &quot;errorType&quot;: &quot;MissingRequiredParameter&quot;,
              &quot;errorMessage&quot;: &quot;Missing required key 'FunctionName' in params&quot;,
              &quot;code&quot;: &quot;MissingRequiredParameter&quot;,
              &quot;message&quot;: &quot;Missing required key 'FunctionName' in params&quot;,
              &quot;time&quot;: &quot;2021-12-24T22:51:39.624Z&quot;,
              &quot;stack&quot;: [
                  &quot;MissingRequiredParameter: Missing required key 'FunctionName' in params&quot;,
                  &quot;    at ParamValidator.fail (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:50:37)&quot;,
                  &quot;    at ParamValidator.validateStructure (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:61:14)&quot;,
                  &quot;    at ParamValidator.validateMember (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:88:21)&quot;,
                  &quot;    at ParamValidator.validate (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:34:10)&quot;,
                  &quot;    at Request.VALIDATE_PARAMETERS (/var/runtime/node_modules/aws-sdk/lib/event_listeners.js:132:42)&quot;,
                  &quot;    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)&quot;,
                  &quot;    at callNextListener (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:96:12)&quot;,
                  &quot;    at /var/runtime/node_modules/aws-sdk/lib/event_listeners.js:86:9&quot;,
                  &quot;    at finish (/var/runtime/node_modules/aws-sdk/lib/config.js:386:7)&quot;,
                  &quot;    at /var/runtime/node_modules/aws-sdk/lib/config.js:404:9&quot;
              ]
          },
          {
              &quot;errorType&quot;: &quot;UnexpectedParameter&quot;,
              &quot;errorMessage&quot;: &quot;Unexpected key 'FunctoinName' found in params&quot;,
              &quot;code&quot;: &quot;UnexpectedParameter&quot;,
              &quot;message&quot;: &quot;Unexpected key 'FunctoinName' found in params&quot;,
              &quot;time&quot;: &quot;2021-12-24T22:51:39.624Z&quot;,
              &quot;stack&quot;: [
                  &quot;UnexpectedParameter: Unexpected key 'FunctoinName' found in params&quot;,
                  &quot;    at ParamValidator.fail (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:50:37)&quot;,
                  &quot;    at ParamValidator.validateStructure (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:77:14)&quot;,
                  &quot;    at ParamValidator.validateMember (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:88:21)&quot;,
                  &quot;    at ParamValidator.validate (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:34:10)&quot;,
                  &quot;    at Request.VALIDATE_PARAMETERS (/var/runtime/node_modules/aws-sdk/lib/event_listeners.js:132:42)&quot;,
                  &quot;    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)&quot;,
                  &quot;    at callNextListener (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:96:12)&quot;,
                  &quot;    at /var/runtime/node_modules/aws-sdk/lib/event_listeners.js:86:9&quot;,
                  &quot;    at finish (/var/runtime/node_modules/aws-sdk/lib/config.js:386:7)&quot;,
                  &quot;    at /var/runtime/node_modules/aws-sdk/lib/config.js:404:9&quot;
              ]
          }
      ],
      &quot;time&quot;: &quot;2021-12-24T22:51:39.681Z&quot;,
      &quot;stack&quot;: [
          &quot;MultipleValidationErrors: There were 2 validation errors:&quot;,
          &quot;* MissingRequiredParameter: Missing required key 'FunctionName' in params&quot;,
          &quot;* UnexpectedParameter: Unexpected key 'FunctoinName' found in params&quot;,
          &quot;    at ParamValidator.validate (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:40:28)&quot;,
          &quot;    at Request.VALIDATE_PARAMETERS (/var/runtime/node_modules/aws-sdk/lib/event_listeners.js:132:42)&quot;,
          &quot;    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)&quot;,
          &quot;    at callNextListener (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:96:12)&quot;,
          &quot;    at /var/runtime/node_modules/aws-sdk/lib/event_listeners.js:86:9&quot;,
          &quot;    at finish (/var/runtime/node_modules/aws-sdk/lib/config.js:386:7)&quot;,
          &quot;    at /var/runtime/node_modules/aws-sdk/lib/config.js:404:9&quot;,
          &quot;    at EnvironmentCredentials.get (/var/runtime/node_modules/aws-sdk/lib/credentials.js:127:7)&quot;,
          &quot;    at getAsyncCredentials (/var/runtime/node_modules/aws-sdk/lib/config.js:398:24)&quot;,
          &quot;    at Config.getCredentials (/var/runtime/node_modules/aws-sdk/lib/config.js:418:9)&quot;
      ]
  }
  </code></pre>